summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2009-12-24 15:58:21 -0500
committerKohei Yoshida <kyoshida@novell.com>2009-12-24 15:58:21 -0500
commit293dcc2cd2bad26920319d290ffa1b2013d6163c (patch)
tree11e32ad3c07acf65e1d2447b37af37a354e922ea
parent2ce41a263ec32ebbd5fc39fdd6d808e34c49cedd (diff)
Ignore <history> elements, and display item type for the <item> elements for later handling.
-rw-r--r--source/docbook.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/docbook.py b/source/docbook.py
index 9eed224..0bbad6c 100644
--- a/source/docbook.py
+++ b/source/docbook.py
@@ -174,7 +174,7 @@ class DocBookConverter:
if len(content) > 0:
dest.appendContent(content)
- elif src.name == 'comment':
+ elif src.name == 'comment' or src.name == 'history':
# we can ignore these elements.
pass
elif src.name == 'embed':
@@ -195,7 +195,7 @@ class DocBookConverter:
elif src.name == 'item':
# an <item> element has a 'type' attribute that specifies how this
# text span should be formatted.
- dest.appendContent(src.getContent())
+ dest.appendContent(src.getContent() + " (%s)"%src.getAttr('type'))
elif src.name == 'list':
# type may be 'unordered' (bulleted) or 'ordered' (numbered).