[gtk-doc] mkdb: doctype does not need to end on ]>



commit f1ab0004900ed3f1fb8b65f8b9889c2241ab1552
Author: Stefan Sauer <ensonic users sf net>
Date:   Thu Sep 8 19:21:33 2011 +0200

    mkdb: doctype does not need to end on ]>
    
    Fixes #652740

 gtkdoc-mkdb.in |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtkdoc-mkdb.in b/gtkdoc-mkdb.in
index add8b3a..85dfe71 100755
--- a/gtkdoc-mkdb.in
+++ b/gtkdoc-mkdb.in
@@ -2757,14 +2757,14 @@ sub ExpandAbbreviations {
 }
 
 
-# Returns the end tag corresponding to the given start tag.
+# Returns the end tag (as a regexp) corresponding to the given start tag.
 sub ExpandAbbreviationsEndTag {
   my ($start_tag) = @_;
 
   if ($start_tag eq "<!\[CDATA\[") {
     return "]]>";
   } elsif ($start_tag eq "<!DOCTYPE") {
-    return "]>";
+    return ">";
   } elsif ($start_tag =~ m/<(\w+)/) {
     return "</$1>";
   }
@@ -2883,7 +2883,7 @@ sub MakeHashXRef {
 #                      e.g. "<!\\[CDATA\\[|<programlisting[^>]*>" to match
 #                      CDATA sections or programlisting elements.
 #               $end_tag_func - function which is passed the matched start tag
-#                      and should return the appropriate end tag string.
+#                      and should return the appropriate end tag string regexp.
 #               $callback - callback called with each part of the text. It is
 #                      called with a piece of text, the symbol being
 #                      documented, and the matched start tag or "" if the text
@@ -2902,7 +2902,7 @@ sub ModifyXMLElements {
       $result .= &$callback ($before_tag, $symbol, "");
       $result .= $start_tag;
 
-      # get the mathing end-tag for current tag
+      # get the matching end-tag for current tag
       $end_tag_regexp = &$end_tag_func ($start_tag);
 
       if ($text =~ m/$end_tag_regexp/s) {



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