From 8651df61bd39d848a0c7e1202372d4745c4bf458 Mon Sep 17 00:00:00 2001 From: Jay Vora Date: Wed, 22 Oct 2008 15:25:01 +0530 Subject: [PATCH] Added
tag for reports. bzr revid: jvo@tinyerp.com-20081022095501-hcergg2qbeotmczv --- bin/report/render/rml2pdf/trml2pdf.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/report/render/rml2pdf/trml2pdf.py b/bin/report/render/rml2pdf/trml2pdf.py index e0cc3cc8220..18edc46d4d8 100644 --- a/bin/report/render/rml2pdf/trml2pdf.py +++ b/bin/report/render/rml2pdf/trml2pdf.py @@ -698,6 +698,12 @@ class _rml_flowable(object): return CurrentFrameFlowable(str(node.getAttribute('name'))) elif node.localName == 'frameEnd': return EndFrameFlowable() + elif node.localName == 'hr': + width_hr=node.hasAttribute('width') and node.getAttribute('width') or '100%' + color_hr=node.hasAttribute('color') and node.getAttribute('color') or 'black' + thickness_hr=node.hasAttribute('thickness') and node.getAttribute('thickness') or 1 + lineCap_hr=node.hasAttribute('lineCap') and node.getAttribute('lineCap') or 'round' + return platypus.flowables.HRFlowable(width=width_hr,color=color.get(color_hr),thickness=float(thickness_hr),lineCap=str(lineCap_hr)) else: sys.stderr.write('Warning: flowable not yet implemented: %s !\n' % (node.localName,)) return None