aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2011-08-02 21:55:33 +0200
committerRichard Carlsson <[email protected]>2011-09-25 20:29:13 +0200
commitd11d6acb3cea2cb750b69e23811b31f6248aac80 (patch)
treecdd2e02d4ba96cd67bc688fd1d5d526902cf5d6a
parent53cf0b70c705e0bf6c09f83f2ce2709d79593ce6 (diff)
downloadotp-d11d6acb3cea2cb750b69e23811b31f6248aac80.tar.gz
otp-d11d6acb3cea2cb750b69e23811b31f6248aac80.tar.bz2
otp-d11d6acb3cea2cb750b69e23811b31f6248aac80.zip
recognize some more URI schemas in wiki text, in particular https
-rw-r--r--lib/edoc/src/edoc_wiki.erl10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/edoc/src/edoc_wiki.erl b/lib/edoc/src/edoc_wiki.erl
index 2f2d14853c..33e687fe63 100644
--- a/lib/edoc/src/edoc_wiki.erl
+++ b/lib/edoc/src/edoc_wiki.erl
@@ -249,10 +249,20 @@ expand_triple([], L, _, L0) ->
expand_uri("http:/" ++ Cs, L, As) ->
expand_uri(Cs, L, "/:ptth", As);
+expand_uri("https:/" ++ Cs, L, As) ->
+ expand_uri(Cs, L, "/:sptth", As);
expand_uri("ftp:/" ++ Cs, L, As) ->
expand_uri(Cs, L, "/:ptf", As);
expand_uri("file:/" ++ Cs, L, As) ->
expand_uri(Cs, L, "/:elif", As);
+expand_uri("mailto:/" ++ Cs, L, As) ->
+ expand_uri(Cs, L, "/:otliam", As);
+expand_uri("nfs:/" ++ Cs, L, As) ->
+ expand_uri(Cs, L, "/:sfn", As);
+expand_uri("shttp:/" ++ Cs, L, As) ->
+ expand_uri(Cs, L, "/:ptths", As);
+expand_uri("xmpp:/" ++ Cs, L, As) ->
+ expand_uri(Cs, L, "/:ppmx", As);
expand_uri(Cs, L, As) ->
expand(Cs, L, [$[ | As]).