diff options
author | Hans Bolinder <hasse@erlang.org> | 2012-12-03 12:34:04 +0100 |
---|---|---|
committer | Hans Bolinder <hasse@erlang.org> | 2013-01-02 10:15:17 +0100 |
commit | b941448860fc2220695d04d8b8806509cb053b5a (patch) | |
tree | 3ec103a7bd6791eedac019d536649a3f459e0567 /lib/edoc/src/edoc_wiki.erl | |
parent | 300c5466a7c9cfe3ed22bba2a88ba21058406402 (diff) | |
download | otp-b941448860fc2220695d04d8b8806509cb053b5a.tar.gz otp-b941448860fc2220695d04d8b8806509cb053b5a.tar.bz2 otp-b941448860fc2220695d04d8b8806509cb053b5a.zip |
[edoc] Introduce Unicode support for source files
Diffstat (limited to 'lib/edoc/src/edoc_wiki.erl')
-rw-r--r-- | lib/edoc/src/edoc_wiki.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/edoc/src/edoc_wiki.erl b/lib/edoc/src/edoc_wiki.erl index 5c71658af5..cc0529d2a9 100644 --- a/lib/edoc/src/edoc_wiki.erl +++ b/lib/edoc/src/edoc_wiki.erl @@ -80,6 +80,7 @@ parse_xml(Data, Line) -> parse_xml_1(Text, Line) -> Text1 = "<doc>" ++ Text ++ "</doc>", + %% Any coding except "utf-8". Opts = [{line, Line}, {encoding, 'iso-8859-1'}], case catch {ok, xmerl_scan:string(Text1, Opts)} of {ok, {E, _}} -> @@ -174,7 +175,7 @@ expand_heading_1(Cs, N, L, As) -> expand_heading_2(Ts, Cs, N, L, As) -> H = ?BASE_HEADING + N, - Ts1 = io_lib:format("<h~w><a name=\"~s\">~s</a></h~w>\n", + Ts1 = io_lib:format("<h~w><a name=\"~ts\">~ts</a></h~w>\n", [H, make_label(Ts), Ts, H]), expand_new_line(Cs, L + 1, lists:reverse(lists:flatten(Ts1), As)). |