[gtk-doc] md_2_db: fix entity escaping



commit 735faf143c4f0bf203e96b20a6e6d47de2c0b601
Author: Stefan Sauer <ensonic users sf net>
Date:   Thu Jan 18 20:31:15 2018 +0100

    md_2_db: fix entity escaping

 gtkdoc/md_to_db.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtkdoc/md_to_db.py b/gtkdoc/md_to_db.py
index 30a68f3..0b64507 100644
--- a/gtkdoc/md_to_db.py
+++ b/gtkdoc/md_to_db.py
@@ -603,7 +603,7 @@ def MarkDownParseSpanElements(text):
 
 
 def EscapeEntities(text):
-    return text.replace('&', '&amp;').replace('<', '&lt;').replace('<', '&gt;')
+    return text.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')
 
 
 def ReplaceEntities(text):
@@ -629,7 +629,7 @@ def MarkDownOutputDocBook(blocksref, symbol, context):
     blocks = blocksref
 
     for block in blocks:
-    #$output += "\n<!-- beg type='" . $block->{"type"} . "'-->\n"
+        # $output += "\n<!-- beg type='" . $block->{"type"} . "'-->\n"
 
         if block["type"] == "paragraph":
             text = MarkDownParseSpanElements(block["text"])
@@ -703,7 +703,7 @@ def MarkDownOutputDocBook(blocksref, symbol, context):
         else:
             output += block["text"] + "\n"
 
-        #$output += "\n<!-- end type='" . $block->{"type"} . "'-->\n"
+        # $output += "\n<!-- end type='" . $block->{"type"} . "'-->\n"
     return output
 
 


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