[reportlab-users] Fwd: Bug in platypus paragraph.py
pnmoslo at gmail.com
pnmoslo at gmail.com
Mon May 26 09:53:49 EDT 2014
Thanks for the quick response -- good to know it's been fixed, and
apologies for not testing with the latest version.
The Ubuntu version seems to be from February -- I suppose they'll catch up
sometime, and in the meantime I've just modified the file in question (this
is on a production server running stuff that's been there for years where
it's much more convenient to just use the Ubuntu updates -- it that respect
it's rather strange that this problem hasn't turned up previously).
Regards,
Paul Mothersdill
On Monday, 26 May 2014 11:15:45 UTC+2, Andy Robinson wrote:
>
> Paul, thanks for this. Our latest source code already has this, so it
> looks like we fixed it after the 14.4 cutoff was made
>
> class _SplitText(unicodeT):
> pass
>
> (The 'unicodeT' is an indirection to do with python 2-and-3 compatibility)
>
>
> I don't know how often the Ubuntu packagers pick up new versions but
> there have been a whole lot of subtle improvements since mid-Feb when
> the cutoff for 14.4 happened. in the meantime, hopefully you can grab
> a fresher version with 'pip install reportlab' ? Most active python
> users seem to prefer to use Python's packaging tools rather than
> Ubuntu's ones.
>
> - Andy
>
>
> On 26 May 2014 10:04, Paul Mothersdill <pa... at nlhas.no <javascript:>>
> 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.
> >
> >
> >
> >
> > ---------- Forwarded message ----------
> > Date: 2014-05-26 10:58 GMT+02:00
> > Subject: Bug in platypus paragraph.py
> > To: reportl... at lists2.reportlab.com <javascript:>
> >
> >
> >
> > There's a helper class in paragraph.py :
> >
> > class _SplitText(unicode):
> > pass
> >
> >
> >
> >
> > _______________________________________________
> > reportlab-users mailing list
> > reportl... at lists2.reportlab.com <javascript:>
> > http://two.pairlist.net/mailman/listinfo/reportlab-users
> >
>
>
>
> --
> Andy Robinson
> Managing Director
> ReportLab Europe Ltd.
> Thornton House, Thornton Road, Wimbledon, London SW19 4NG, UK
> Tel +44-20-8405-6420
> _______________________________________________
> reportlab-users mailing list
> reportl... at lists2.reportlab.com <javascript:>
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/reportlab-users/attachments/20140526/9e58f46d/attachment.html>
More information about the reportlab-users
mailing list