diff options
author | Henrik Nord <[email protected]> | 2011-09-28 15:00:19 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2011-09-28 15:02:54 +0200 |
commit | ae097a5161b79f16f8b9a2d8f73e5e2f1792edec (patch) | |
tree | cbf278b965e5ad7fbe95bea524ea9580c2942684 /lib/edoc/src/edoc_wiki.erl | |
parent | fde38fa8d3120e6aa479f7720654114df9cd4ec8 (diff) | |
parent | df2063c1e436cfb2bb9283df074c4eaa87aeec91 (diff) | |
download | otp-ae097a5161b79f16f8b9a2d8f73e5e2f1792edec.tar.gz otp-ae097a5161b79f16f8b9a2d8f73e5e2f1792edec.tar.bz2 otp-ae097a5161b79f16f8b9a2d8f73e5e2f1792edec.zip |
Merge branch 'rc/edoc-0.7.9' into dev
* rc/edoc-0.7.9:
bumped revision
removed some never-matching clauses reported by dialyzer
Fix macro expansion in comments following Erlang types
URI-escape bytes as two hex digits always (reported by Alfonso De Gregorio)
updated author e-mail
recognize some more URI schemas in wiki text, in particular https
OTP-9590
Diffstat (limited to 'lib/edoc/src/edoc_wiki.erl')
-rw-r--r-- | lib/edoc/src/edoc_wiki.erl | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/edoc/src/edoc_wiki.erl b/lib/edoc/src/edoc_wiki.erl index 2f2d14853c..5c71658af5 100644 --- a/lib/edoc/src/edoc_wiki.erl +++ b/lib/edoc/src/edoc_wiki.erl @@ -16,7 +16,7 @@ %% %% @private %% @copyright 2001-2003 Richard Carlsson -%% @author Richard Carlsson <[email protected]> +%% @author Richard Carlsson <[email protected]> %% @see edoc %% @end %% ===================================================================== @@ -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]). |