[gtk-doc] db2html: remove text handling for some tags



commit c289f85251b9a5b1b9e1985d810f10db8520c756
Author: Stefan Sauer <ensonic users sf net>
Date:   Tue Jan 16 18:55:07 2018 +0100

    db2html: remove text handling for some tags
    
    Not all tags can have #PCDATA as a child.

 tools/db2html.py |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)
---
diff --git a/tools/db2html.py b/tools/db2html.py
index a555fc9..2f19061 100644
--- a/tools/db2html.py
+++ b/tools/db2html.py
@@ -299,8 +299,6 @@ def convert_informaltable(xml):
 
 def convert_itemizedlist(xml):
     result = '<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">'
-    if xml.text:
-        result += xml.text
     result += convert__inner(xml)
     result += '</ul></div>'
     if xml.tail:
@@ -330,12 +328,9 @@ def convert_link(xml):
 
 def convert_listitem(xml):
     result = '<li class="listitem">'
-    if xml.text:
-        result += xml.text
     result += convert__inner(xml)
     result += '</li>'
-    if xml.tail:
-        result += xml.tail
+    # is in itemizedlist and there can be no 'text'
     return result
 
 


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