[gtk-doc] Add some newlines to space out the output a bit



commit a589182f1bfbcf4f02155c8051d80655395280fe
Author: William Jon McCann <william jon mccann gmail com>
Date:   Wed Jan 29 17:53:40 2014 -0500

    Add some newlines to space out the output a bit
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723288

 gtkdoc-mkdb.in |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 14da873..47ede79 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -4595,7 +4595,7 @@ sub ConvertMarkDown {
     # encapsulate and terminate
     $text = "<para>\n$text\n</para>";
     if ($md_in_refsect2==1) {
-        $text = "$text</refsect2>"
+        $text = "$text\n</refsect2>"
     }
     return $text
 }
@@ -4623,7 +4623,7 @@ sub ConvertMarkDownCallback {
     $end_of_para = "$end_of_para</para>";
     $end_of_section = "$end_of_section</para>";
     if ($md_in_refsect2==1) {
-        $end_of_section= "$end_of_section</refsect2>";
+        $end_of_section= "$end_of_section\n</refsect2>";
     }
 
     # TODO(ensonic): it would be nice to add id parameters to the refsect2 elements
@@ -4635,7 +4635,7 @@ sub ConvertMarkDownCallback {
     #          Header 2
     #          --------
     #
-    if($text =~ s%(?<=\n)(.+)[ \t]*\n=+[ \t]*\n\n%$end_of_section<refsect2><title>$1</title><para>\n%gm) {
+    if($text =~ s%(?<=\n)(.+)[ \t]*\n=+[ 
\t]*\n\n%$end_of_section\n<refsect2>\n<title>$1</title>\n<para>\n%gm) {
         $md_in_refsect2=1;
     }
 
@@ -4646,7 +4646,7 @@ sub ConvertMarkDownCallback {
     #        ...
     #        ###### Header 6
     #
-    if($text =~ s%(?<=\n)\#[ \t]*(.+?)[ \t]*\#\n+%$end_of_section<refsect2><title>$1</title><para>\n%gm) {
+    if($text =~ s%(?<=\n)\#[ \t]*(.+?)[ 
\t]*\#\n+%$end_of_section\n<refsect2>\n<title>$1</title>\n<para>\n%gm) {
         $md_in_refsect2=1;
     }
 


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