summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2018-01-16 18:55:07 +0100
committerStefan Sauer <ensonic@users.sf.net>2018-01-18 20:20:45 +0100
commitc289f85251b9a5b1b9e1985d810f10db8520c756 (patch)
tree598c2c8dbcafd9acba034af2518acb69880ac72f /tools
parentb637c7e13a6bcd9c82903c7cf94bb6c1760e0e4a (diff)
downloadgtk-doc-c289f85251b9a5b1b9e1985d810f10db8520c756.tar.gz
db2html: remove text handling for some tags
Not all tags can have #PCDATA as a child.
Diffstat (limited to 'tools')
-rw-r--r--tools/db2html.py7
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