[gtk-doc] Fix showing empty Object Hierarchy



commit da64d9fa344437079772987026ca0f207a372bca
Author: William Jon McCann <william jon mccann gmail com>
Date:   Wed Feb 19 20:01:55 2014 -0500

    Fix showing empty Object Hierarchy
    
    Don't add a newline and then check for an empty string.

 gtkdoc-mkdb.in |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 1c25cb1..6e3db0d 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -818,12 +818,13 @@ $style_args_desc
 EOF
                 }
 
-                $hierarchy_str = &AddTreeLineArt(\ hierarchy) . "\n"; 
+                $hierarchy_str = &AddTreeLineArt(\ hierarchy);
                 if ($hierarchy_str ne "") {
                     $hierarchy_str = <<EOF;
 <refsect1 id="$section_id.object-hierarchy" role="object_hierarchy">
 <title role="object_hierarchy.title">Object Hierarchy</title>
-<screen>$hierarchy_str</screen>
+<screen>$hierarchy_str
+</screen>
 </refsect1>
 EOF
                 }


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