[gtk-doc] gtkdoc-mkdb: remove trailing blanks from Section_Id, Fixes #591975



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.

 gtkdoc-mkdb.in |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]