diff options
| author | sbh (Open ERP) <sbh@tinyerp.com> | 2010-04-02 14:19:26 +0530 |
|---|---|---|
| committer | sbh (Open ERP) <sbh@tinyerp.com> | 2010-04-02 14:19:26 +0530 |
| commit | 9f0fdbdc528dc6371c29fc03f7dfd8b6115de9be (patch) | |
| tree | d92151ea7838fe8d520843000b52fbad2b6436d7 /bin/report/render | |
| parent | 68124ff51d286d79c73b9fd18dd22af6539a749a (diff) | |
[Fix] trml2pdf: set the Heading tag name
bzr revid: sbh@tinyerp.com-20100402084926-vys4yshlxk5yx42z
Diffstat (limited to 'bin/report/render')
| -rw-r--r-- | bin/report/render/rml2pdf/trml2pdf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/report/render/rml2pdf/trml2pdf.py b/bin/report/render/rml2pdf/trml2pdf.py index 0574f563c90..fa1595e13a4 100644 --- a/bin/report/render/rml2pdf/trml2pdf.py +++ b/bin/report/render/rml2pdf/trml2pdf.py @@ -636,9 +636,9 @@ class _rml_flowable(object): styles = reportlab.lib.styles.getSampleStyleSheet() style = styles['Title'] return platypus.Paragraph(self._textual(node), style, **(utils.attr_get(node, [], {'bulletText':'str'}))) - elif re.match('^h([1-9]+[0-9]*)$', (node.text or '')): + elif re.match('^h([1-9]+[0-9]*)$', (node.tag or '')): styles = reportlab.lib.styles.getSampleStyleSheet() - style = styles['Heading'+str(node.get[1:])] + style = styles['Heading'+str(node.tag[1:])] return platypus.Paragraph(self._textual(node), style, **(utils.attr_get(node, [], {'bulletText':'str'}))) elif node.tag=='image': if not node.get('file'): |
