aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/gl_scan_doc.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2013-01-08 14:55:52 +0100
committerDan Gudmundsson <[email protected]>2013-01-09 11:45:11 +0100
commitc384a91846f7d0aff189fb51d1d502330d7abef4 (patch)
tree6244eb3e86b4fbe154e8042bbb6bcbaf80a25c74 /lib/wx/api_gen/gl_scan_doc.erl
parent4400ec08aaa4c30272f502b5d8450dafec30f5dc (diff)
downloadotp-c384a91846f7d0aff189fb51d1d502330d7abef4.tar.gz
otp-c384a91846f7d0aff189fb51d1d502330d7abef4.tar.bz2
otp-c384a91846f7d0aff189fb51d1d502330d7abef4.zip
wx: Fix comments
Fix utf-8 code generation for opengl docs
Diffstat (limited to 'lib/wx/api_gen/gl_scan_doc.erl')
-rw-r--r--lib/wx/api_gen/gl_scan_doc.erl14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/wx/api_gen/gl_scan_doc.erl b/lib/wx/api_gen/gl_scan_doc.erl
index fc7b7cf275..80b4826a30 100644
--- a/lib/wx/api_gen/gl_scan_doc.erl
+++ b/lib/wx/api_gen/gl_scan_doc.erl
@@ -2,7 +2,7 @@
%%--------------------------------------------------------------------
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2012. All Rights Reserved.
+%% Copyright Ericsson AB 2012-2013. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -56,8 +56,10 @@ gen_output({characters, String0}, #state{gen_output=true, type=Type, str=Str} =
mi -> case hd(Str) of
"/" -> String;
"*" -> String;
+ [215] -> String;
"+" -> String;
"-" -> String;
+ "=" -> String;
{fenced,_,_} -> String;
_ ->
[$ |String]
@@ -268,7 +270,9 @@ fix_str([$<|Str]) ->
fix_str([$>|Str]) ->
[$&,$g,$t,$;|fix_str(Str)];
fix_str("&times;"++Str) ->
- [$*|fix_str(Str)];
+ [215|fix_str(Str)];
+%% fix_str([215|Str]) ->
+%% [$*|fix_str(Str)];
fix_str("&Prime;"++Str) ->
[$"|fix_str(Str)];
fix_str("&CenterDot;"++Str) ->
@@ -277,10 +281,12 @@ fix_str("&af;"++Str) ->
fix_str(Str);
fix_str("&it;"++Str) ->
[$ |fix_str(Str)];
+fix_str("&nbsp;"++Str) ->
+ [$ |fix_str(Str)];
fix_str([$&|Str]) ->
[$&,$a,$m,$p,$; |fix_str(Str)];
-fix_str([C|Str]) when C > 255 ->
- fix_str(Str);
+%% fix_str([C|Str]) when C > 255 ->
+%% fix_str(Str);
fix_str([C|Str]) ->
[C|fix_str(Str)];
fix_str([]) -> [].