diff options
author | Dan Gudmundsson <[email protected]> | 2017-09-14 10:30:50 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2017-09-14 10:30:50 +0200 |
commit | e5c081cfa3b7b733776c8dc5bd81dff33170fdc6 (patch) | |
tree | 434553dcffd4068ede8fa20a235a42fe92d7fd7a /lib/wx/api_gen/gl_scan_doc.erl | |
parent | bd36da0f509ee4e357fdf51b60f3dfcecc824eb8 (diff) | |
download | otp-e5c081cfa3b7b733776c8dc5bd81dff33170fdc6.tar.gz otp-e5c081cfa3b7b733776c8dc5bd81dff33170fdc6.tar.bz2 otp-e5c081cfa3b7b733776c8dc5bd81dff33170fdc6.zip |
wx: Reduce Opengl docs
Only use the first paragraph in the doc which contains an overview,
the result of the more detailed doc generated non valid xml, and
all math expressions was rendered poorly. Remove for now.
Diffstat (limited to 'lib/wx/api_gen/gl_scan_doc.erl')
-rw-r--r-- | lib/wx/api_gen/gl_scan_doc.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/wx/api_gen/gl_scan_doc.erl b/lib/wx/api_gen/gl_scan_doc.erl index 0a1c25ae13..6ed5438608 100644 --- a/lib/wx/api_gen/gl_scan_doc.erl +++ b/lib/wx/api_gen/gl_scan_doc.erl @@ -209,6 +209,10 @@ gen_output({startElement, _Uri, "para", _QName, _Attributes}, #state{gen_output= State#state{str=[para|Str]} end; +gen_output({endElement, _Uri, "para", _QName}, #state{gen_output=true, str=Str} = State) -> + %% Pick only the first paragraph in the descriptions + State#state{gen_output=false}; + %% gen_output({startElement, _Uri, What, _QName, _Attributes}, State) -> %% io:format("Skipped ~s~n",[What]), %% State; |