From e5c081cfa3b7b733776c8dc5bd81dff33170fdc6 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Thu, 14 Sep 2017 10:30:50 +0200 Subject: 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. --- lib/wx/api_gen/gl_scan_doc.erl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/wx/api_gen') 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; -- cgit v1.2.3