GNOME Bugzilla – Bug 591975
Section_Id always embeds a trailing newline
Last modified: 2009-12-19 21:25:40 UTC
The following docblock: /** * SECTION:adg-pair * @Section_Id:AdgPair-GBoxed * ... **/ gives me this xml fragment: <refentry id="AdgPair-GBoxed "> <refmeta> <refentrytitle role="top_of_page" id="AdgPair-GBoxed .top_of_page">AdgPair</refentrytitle> ... and in the final HTML the newlines are converted to spaces. I didn't find any way to get rid of this newline other than patch gtkdoc-mkdb.
Created attachment 140891 [details] Simply strips any trailing blank on non-empty section_id Sanitizing this id should be considered too, I think something like this: $section_id = &CreateValidSGMLID ($section_id);
commit bf3485d864f1b3475f10c6e3d0b01815e3d5dc69 Author: Nicola Fontana <ntd@entidi.it> Date: Sun Aug 16 15:48:47 2009 +0200 gtkdoc-mkdb: remove trailing blanks from Section_Id, Fixes #591975 $SourceSymbolDocs always embeds the trailing newline. Being an id, there is no reasons to keep any blank at the end of a section id.