[gtk-doc] Support leaving off the trailing hashes in headings



commit aab96bcce5baa3277687ec5eb851885224220666
Author: William Jon McCann <william jon mccann gmail com>
Date:   Wed Jan 29 18:13:34 2014 -0500

    Support leaving off the trailing hashes in headings
    
    Fixes test added in previous commit.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723288

 gtkdoc-mkdb.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index 47ede79..f12efa6 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -4646,7 +4646,7 @@ sub ConvertMarkDownCallback {
     #        ...
     #        ###### Header 6
     #
-    if($text =~ s%(?<=\n)\#[ \t]*(.+?)[ 
\t]*\#\n+%$end_of_section\n<refsect2>\n<title>$1</title>\n<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]