[reportlab-users] "setfont" tag in RML seems not to work propelry
Robin Becker
reportlab-users@reportlab.com
Wed, 28 Jul 2004 08:52:26 +0100
Ulrich Weber wrote:
>
>
> Hi there,
>
> your discussion on having an open source version of RML resp. rml2pdf or
> not does not help me really.
>
> Actually, I am indeed using the open source version, i. e. tiny RML2PDF and
> the ReportLab open source PDF library.
>
> In the meantime I did some Python debugging and found, that there is
> apparently a bug in the open source PDF library:
>
> In reportlab/pdfbase/pdfdoc.py line 768 and those following read:
>
> def format(self, document):
> strings = map(str, self.strings) # final conversion, in case of
> lazy objects
> return string.join(self.strings, "")
>
> The variable "strings" is populated (for good reasons), but obviously never
> used. If the last line shown above is changed to
>
> return string.join(strings, "")
>
> everything works fine.
>
>
> Best Regards,
>
> Ulrich Weber
...... this actually looks like a bug which is exposed in the tinyrml
stuff. Normally self.strings should be all type(""), but I suppose it's
possible that some non string objects can get in there (at least in
tinyrml).
--
Robin Becker