Re: Fwd: Bug in platypus paragraph.py
Peter Cock <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <CAKVJ-_48X0cAyGdEqfR8xhCH0xPt0MMm4QSLEE11W+3-H1X1Pw@mail.gmail.com> |
On Mon, May 26, 2014 at 10:04 AM, Paul Mothersdill <[email protected]> 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