diff options
-rw-r--r-- | source/docbook.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/docbook.py b/source/docbook.py index 784e789..3ecee48 100644 --- a/source/docbook.py +++ b/source/docbook.py @@ -228,7 +228,15 @@ class DocBookConverter: elem.appendElement('title').appendContent(title) return elem else: - para = dest.appendElement('para') + paraName = 'para' + if role != None: + if role == 'note': + paraName = 'note' + elif role == 'warning': + paraName = 'warning' + elif role == 'tip': + paraName = 'tip' + para = dest.appendElement(paraName) for child in src.getChildNodes(): self.__walkXHP(child, para) |