From 683f3fe232c5a696bd00d9ec10a69af7d36fcb4a Mon Sep 17 00:00:00 2001 From: "dsh (Open ERP)" Date: Wed, 10 Jun 2009 16:53:28 +0530 Subject: [PATCH] [IMP] added style for the url which are as text bzr revid: dsh@tinyerp.com-20090610112328-0rd3cr2ig132yt12 --- bin/report/render/html2html/html2html.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/report/render/html2html/html2html.py b/bin/report/render/html2html/html2html.py index 2cf5b147dd0..1fc63572a0f 100644 --- a/bin/report/render/html2html/html2html.py +++ b/bin/report/render/html2html/html2html.py @@ -71,8 +71,20 @@ class html2html(object): self._node.remove(n) process_text(self.etree, self._node) return self._node + + def url_modify(self,root): + for n in root.getchildren(): + if n.text.find('=0 and n.text.find('style')<=0 : + node = (n.tag=='span' and n.getparent().tag=='u') and n.getparent().getparent() or ((n.tag=='span') and n.getparent()) or n + style = node.get('color') and "style='color:%s; text-decoration: none;'"%node.get('color') or '' + href = n.text.split('