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

Peter Cock p.j.a.cock at googlemail.com
Mon May 26 05:09:59 EDT 2014


On Mon, May 26, 2014 at 10:04 AM, Paul Mothersdill <paul at nlhas.no> wrote:
> 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.

Are you using Python 2 or 3?

Peter


More information about the reportlab-users mailing list