summaryrefslogtreecommitdiff
path: root/bin/report/render/html2html/html2html.py
diff options
context:
space:
mode:
authorFabien Pinckaers <fp@tinyerp.com>2009-06-10 01:15:54 +0200
committerFabien Pinckaers <fp@tinyerp.com>2009-06-10 01:15:54 +0200
commitdb8f650de377a71bdc97a7b0f8ce420f8c30cce8 (patch)
treef0171d940b6e709ede6f541a4aa14b5157584d3b /bin/report/render/html2html/html2html.py
parent81e514ee5fccd96620640b058149f384fca432ec (diff)
parentfc2689fc8d04958b3efe6ffbbc8c2b734a3fd111 (diff)
[FIX] Bugfix translations and float/int format in reports
bzr revid: fp@tinyerp.com-20090609231554-iug5t0i4wi5wjzc3
Diffstat (limited to 'bin/report/render/html2html/html2html.py')
-rw-r--r--bin/report/render/html2html/html2html.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/report/render/html2html/html2html.py b/bin/report/render/html2html/html2html.py
index fb1f6fcedd0..2cf5b147dd0 100644
--- a/bin/report/render/html2html/html2html.py
+++ b/bin/report/render/html2html/html2html.py
@@ -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:
@@ -58,8 +59,10 @@ class html2html(object):
output = cStringIO.StringIO(base64.decodestring(src))
img = ImageReader(output)
(width,height) = img.getSize()
- new_child.set('width',str(width))
- new_child.set('height',str(height))
+ if not new_child.get('width'):
+ new_child.set('width',str(width))
+ if not new_child.get('height') :
+ new_child.set('height',str(height))
else :
new_child.getparent().remove(new_child)
new_child.text = utils._process_text(self, child.text)