summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2009-12-24 12:22:10 -0500
committerKohei Yoshida <kyoshida@novell.com>2009-12-24 12:22:10 -0500
commit2ce41a263ec32ebbd5fc39fdd6d808e34c49cedd (patch)
treeb67c2528b23b5f88ea4b9fdb4dc1568f77c83dc3
parent7ab8695fad3e71b66fd8184cea117979cc62527f (diff)
Disable setting id attribute for now & add <para> when embedding content.
-rw-r--r--source/docbook.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/docbook.py b/source/docbook.py
index 7cc17dc..9eed224 100644
--- a/source/docbook.py
+++ b/source/docbook.py
@@ -138,7 +138,7 @@ class DocBookConverter:
title = src.getAttr('title')
xhppath = src.getAttr('path')
sect = DocBookConverter.startSubSection(dest)
- sect.setAttr('id', xhppath)
+# sect.setAttr('id', xhppath)
sect.appendElement('title').appendContent(title)
if self.xhproots.has_key(xhppath):
self.__getContentFromXHP(xhppath, sect)
@@ -184,7 +184,8 @@ class DocBookConverter:
if embed == None:
dest.appendElement('warning').appendContent('take embedded content from ' + href)
else:
- dest = self.__walkXHP(embed, dest)
+ para = dest.appendElement('para')
+ dest = self.__walkXHP(embed, para)
elif src.name == 'switchinline':
# For now, always select the <defaultinline> child element.