summaryrefslogtreecommitdiff
path: root/gtkdoc-mkdb.in
diff options
context:
space:
mode:
authorWilliam Jon McCann <william.jon.mccann@gmail.com>2014-02-19 20:01:55 -0500
committerWilliam Jon McCann <william.jon.mccann@gmail.com>2014-02-19 20:01:55 -0500
commitda64d9fa344437079772987026ca0f207a372bca (patch)
treece0ba90bb4c289cc4229c228eb31d58db18e9f4f /gtkdoc-mkdb.in
parent685d03c624c3e5184198e191ac52b77d9b41c0bb (diff)
downloadgtk-doc-da64d9fa344437079772987026ca0f207a372bca.tar.gz
Fix showing empty Object Hierarchy
Don't add a newline and then check for an empty string.
Diffstat (limited to 'gtkdoc-mkdb.in')
-rwxr-xr-xgtkdoc-mkdb.in5
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
}