diff options
-rw-r--r-- | source/docbook.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source/docbook.py b/source/docbook.py index 2f86f5e..d97dbd5 100644 --- a/source/docbook.py +++ b/source/docbook.py @@ -180,6 +180,17 @@ class DocBookConverter: dest.appendElement('warning').appendContent('take embedded content from ' + href) else: dest = self.__walkXHP(embed, dest) + + elif src.name == 'switchinline': + # For now, always select the <defaultinline> child element. + content = src.firstChildByName('defaultinline').getContent() + dest.appendContent(content) + + elif src.name == 'item': + # an <item> element has a 'type' attribute that specifies how this + # text span should be formatted. + dest.appendContent(src.getContent()) + elif src.name == 'link': for child in src.getChildNodes(): self.__walkXHP(child, dest) |