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:
parent
5aa4677718
commit
6a62711467
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue