[reportlab-users] Fwd: Bug in platypus paragraph.py

Paul Mothersdill paul at nlhas.no
Mon May 26 05:04:48 EDT 2014


Sorry -- previous mail was sent prematurely.

There's a helper class in paragraph.py :

class _SplitText(str):
   pass

The str here should surely be unicode? The whole programming logic is that
it should be a unicode object -- and it fails (of course) if the character
is outside the ascii range.

I've done limited testing an found that changing this to

 class _SplitText(unicode):
   pass
solves the problems I've been experiencing.

Reportlab open source as found in the standard Ubuntu 14.4 server
repositories.




---------- Forwarded message ----------
Date: 2014-05-26 10:58 GMT+02:00
Subject: Bug in platypus paragraph.py
To: reportlab-users at lists2.reportlab.com



There's a helper class in paragraph.py :

class _SplitText(unicode):
pass
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20140526/31a79936/attachment.html>


More information about the reportlab-users mailing list