summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2009-12-24 00:57:57 -0500
committerKohei Yoshida <kyoshida@novell.com>2009-12-24 00:57:57 -0500
commitd993070349dba814950288dbc6bc57fd1d7eb5b9 (patch)
treedbe431afbf58b067e14b59f5945d7970a015ddf7 /source
parentb39172b7ca65111901e278c6b39355f5c782c298 (diff)
More paragraph types.
Diffstat (limited to 'source')
-rw-r--r--source/docbook.py10
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)