odoo/openerp/report/render/rml2pdf
Denis Ledoux 25f5329deb [FIX] report: break lines and splitted words with reportlab > 3.0
From reportlab 3.0, empty plaintext paragraphs do not lead to a break line anymore.
Before release 3.0, paragraphs having tags but no plaintext leaded to a break line.
This patch aims to recover the behavior of reportlab releases < 3.0, as
<para><font color="white"> </font></para> is used in allmost all rml reports
The current patch is not considered as clean, but we did not find any better solution.
If someone find a parameter to pass to reportlab in order to bring back the old behavior of reportlab
he is welcome to provide the better patch.

Besides, in reportlab 3.0, splitlongwords has been introduced as parameter,
to allow to break long words. The default value is True.
This parameter seems to break the columns headers
(it splits the text within the column header)
We therefore take the choice to not activate it, as it was not present anyway in reportlab < 3.0

To test the good behavior of this patch:
While having reportlab < 3.0 (2.5 for instance), print a draft invoice
Then, upgrade to reportlab > 3.0 (3.1.8 for instance), print the same draft invoice.
The generated pdf must be (allmost) identical, in particular concerning spaces.
Specifically, the space between the partner address and his phone.
2015-01-22 14:23:38 +01:00
..
__init__.py [IMP] Added missing vim mode lines 2011-11-22 09:58:48 +01:00
color.py [REM] unnecessary parens 2012-12-14 13:38:03 +01:00
customfonts.py [FIX] rml2pdf: correct filename for Sun-ExtA font 2013-05-28 20:50:31 +02:00
trml2pdf.py [FIX] report: break lines and splitted words with reportlab > 3.0 2015-01-22 14:23:38 +01:00
utils.py [IMP] use exact writing for fsf address 2013-05-14 16:32:54 +02:00