diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2009-12-24 00:57:57 -0500 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2009-12-24 00:57:57 -0500 |
commit | d993070349dba814950288dbc6bc57fd1d7eb5b9 (patch) | |
tree | dbe431afbf58b067e14b59f5945d7970a015ddf7 /source | |
parent | b39172b7ca65111901e278c6b39355f5c782c298 (diff) |
More paragraph types.
Diffstat (limited to 'source')
-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) |