diff options
| author | dsh (Open ERP) <dsh@tinyerp.com> | 2009-05-05 17:12:27 +0530 |
|---|---|---|
| committer | dsh (Open ERP) <dsh@tinyerp.com> | 2009-05-05 17:12:27 +0530 |
| commit | 5c828843a9edd501ca4c80499f15f1ec02263c2a (patch) | |
| tree | 1d8034df2bcec6b578bc7b9302136e2befe55028 /bin/report/preprocess.py | |
| parent | 3d818a0f1a6e16f44dee3555c6eec4379e0a976d (diff) | |
changes in report engine for html2html
bzr revid: dsh@tinyerp.com-20090505114227-mp9ndr3rkbkycfl7
Diffstat (limited to 'bin/report/preprocess.py')
| -rw-r--r-- | bin/report/preprocess.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/report/preprocess.py b/bin/report/preprocess.py index fe7f173af53..441df892c1c 100644 --- a/bin/report/preprocess.py +++ b/bin/report/preprocess.py @@ -2,6 +2,7 @@ from lxml import etree import re rml_parents = ['tr','story','section'] +html_parents = ['tr','body','div'] sxw_parents = ['{http://openoffice.org/2000/table}table-row','{http://openoffice.org/2000/office}body','{http://openoffice.org/2000/text}section'] class report(object): @@ -36,6 +37,8 @@ class report(object): match = rml_parents if type in ['odt','sxw']: match = sxw_parents + if type =='html2html': + match = html_parents if txt.group(3): match = [txt.group(3)] n = node |
