changes for the image in html2html

bzr revid: dsh@tinyerp.com-20090520130245-asx882zycp64mytd
This commit is contained in:
dsh (Open ERP)
2009-05-20 18:32:45 +05:30
parent 376a814869
commit f6573abc50
2 changed files with 16 additions and 5 deletions
+2
View File
@@ -49,6 +49,8 @@ class html2html(object):
src = utils._process_text(self, new_child.get('name'))
if src :
new_child.set('src','data:image/gif;base64,%s'%src)
else :
new_child.getparent().remove(new_child)
new_child.text = utils._process_text(self, child.text)
self._node = copy.deepcopy(self.etree)
for n in self._node: