freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [2/2] incubator-freemarker-docgen git commit: Remove "mailto:" when displaying a mailto URL.
Date Mon, 23 Jan 2017 13:03:39 GMT
Remove "mailto:" when displaying a mailto URL.


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-docgen/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-docgen/commit/1a649599
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-docgen/tree/1a649599
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker-docgen/diff/1a649599

Branch: refs/heads/master
Commit: 1a6495999fddd6036309020e08abc22d333629b5
Parents: f99ec0b
Author: ddekany <ddekany@apache.org>
Authored: Mon Jan 23 14:03:25 2017 +0100
Committer: ddekany <ddekany@apache.org>
Committed: Mon Jan 23 14:03:25 2017 +0100

----------------------------------------------------------------------
 src/main/org/freemarker/docgen/templates/node-handlers.ftlh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker-docgen/blob/1a649599/src/main/org/freemarker/docgen/templates/node-handlers.ftlh
----------------------------------------------------------------------
diff --git a/src/main/org/freemarker/docgen/templates/node-handlers.ftlh b/src/main/org/freemarker/docgen/templates/node-handlers.ftlh
index 88803dd..40fedd0 100644
--- a/src/main/org/freemarker/docgen/templates/node-handlers.ftlh
+++ b/src/main/org/freemarker/docgen/templates/node-handlers.ftlh
@@ -233,7 +233,7 @@
              + "\". Ensure this target is defined in the docgen.cfg file.">
     </#if>
     <#local url = olinks[.node.@targetdoc]>
-    <a href="${url}"><#if .node?children?size != 0><#recurse><#else>${url}</#if></a><#t>
+    <a href="${url}"><#if .node?children?size != 0><#recurse>><#else>${url?removeBeginning('mailto:')}</#if></a><#t>
 </#macro>
 
 <#macro orderedlist>


Mime
View raw message