From bf3485d864f1b3475f10c6e3d0b01815e3d5dc69 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Sun, 16 Aug 2009 15:48:47 +0200 Subject: [PATCH] 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. --- gtkdoc-mkdb.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in index 36e2f8b..4a3283c 100755 --- a/gtkdoc-mkdb.in +++ b/gtkdoc-mkdb.in @@ -563,7 +563,8 @@ sub OutputSGML { my $section_id = $SourceSymbolDocs{"$TMPL_DIR/$filename:Section_Id"}; if (defined ($section_id) && $section_id !~ m/^\s*$/) { - # Do nothing. Use section_id as it is. + # Remove trailing blanks and use as is + $section_id =~ s/\s+$//; } elsif (&CheckIsObject ($title)) { # GtkObjects use their class name as the ID. $section_id = &CreateValidSGMLID ($title); -- 2.11.4.GIT