Khushboo Bhatt(openerp) has proposed merging 
lp:~openerp-dev/openobject-server/trunk-opw-576860-port-kbh into 
lp:openobject-server.

Requested reviews:
  OpenERP Core Team (openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-opw-576860-port-kbh/+merge/138635

Rapports written using rml now allows blank lines in user text.

Steps to reproduce the bug:
* install the module account_followup
* enter text with spaces between lines
* print the followup => blank lines are not printed

This change should impact every modules using trml2pdf

Code is forward port from 6.1
Thanks,
Khushboo.
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/trunk-opw-576860-port-kbh/+merge/138635
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/trunk-opw-576860-port-kbh.
=== modified file 'openerp/report/render/rml2pdf/trml2pdf.py'
--- openerp/report/render/rml2pdf/trml2pdf.py	2012-11-26 18:15:27 +0000
+++ openerp/report/render/rml2pdf/trml2pdf.py	2012-12-07 05:34:20 +0000
@@ -743,6 +743,8 @@
                 style.__dict__.update(extra_style)
             result = []
             for i in self._textual(node).split('\n'):
+                if len(i.strip()) == 0:
+                    i = '<font color="white"> </font>'
                 result.append(platypus.Paragraph(i, style, **(utils.attr_get(node, [], {'bulletText':'str'}))))
             return result
         elif node.tag=='barCode':

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to