[Python-modules-team] Bug#463870: Bug with entities in textual nodes
Lukas Fittl
lf at nessus.at
Sun Feb 3 19:03:50 UTC 2008
Package: python-trml2pdf
Version: 1.0-1
We've just discovered a problem while using trml2pdf:
If the source RML file contains entities (e.g. "<") in an xpre or para tag,
it does not correctly pass these on to the reportlab library.
The entity should be printed out as "<", but instead nothing is shown.
This happens because the trml2pdf XML parser already decodes the entity.
Reportlab then parses the data again (to find formatting tags). Therefore the
data gets decoded twice, which is obviously wrong.
A patch that fixes the bug (for Text and CDATA sections in textual nodes) is
attached.
Thanks in advance for taking a look at this!
Best Regards,
Lukas
--
Lukas Fittl
Development and Operations - Nessus Internet Dienstleistungs GmbH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trml2pdf_textual_node_bugfix.patch
Type: text/x-diff
Size: 556 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20080203/03b9b7f6/attachment-0001.patch
More information about the Python-modules-team
mailing list