bug fix(skip text if child nodes are there) for the html2html and openoffice reports

bzr revid: dsh@tinyerp.com-20090604112839-91d7pj22oos69wsd
This commit is contained in:
dsh (Open ERP) 2009-06-04 16:58:39 +05:30
parent 5aa4677718
commit 6a62711467
2 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class html2html(object):
new_node.append(new_child)
if len(child):
for n in new_child:
new_child.text = utils._process_text(self, child.text)
new_child.remove(n)
process_text(child, new_child)
else:

View File

@ -38,6 +38,7 @@ class odt2odt(object):
new_node.attrib.clear()
for child in utils._child_get(node, self):
new_child = copy.deepcopy(child)
new_child.text = utils._process_text(self, child.text)
new_node.append(new_child)
if len(child):
for n in new_child: