Your message dated Sun, 3 Feb 2008 22:49:33 +0100
with message-id <[EMAIL PROTECTED]>
and subject line Duplicate
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
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. "&lt;") 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
diff -Naur python-trml2pdf-1.0.orig/trml2pdf/trml2pdf.py python-trml2pdf-1.0/trml2pdf/trml2pdf.py
--- python-trml2pdf-1.0.orig/trml2pdf/trml2pdf.py	2004-09-27 19:06:11.000000000 +0200
+++ python-trml2pdf-1.0/trml2pdf/trml2pdf.py	2008-02-03 20:00:46.000000000 +0100
@@ -378,9 +378,9 @@
 					self._textual(n)
 				rc += n.toxml()
 			elif (n.nodeType == node.CDATA_SECTION_NODE):
-				rc += n.data
+				rc += n.toxml()
 			elif (n.nodeType == node.TEXT_NODE):
-				rc += n.data
+				rc += n.toxml()
 		return rc.encode(encoding)
 
 	def _table(self, node):

--- End Message ---
--- Begin Message ---
Duh. Kmail sent this twice, sorry.

-- 
Lukas Fittl
Development and Operations - Nessus Internet Dienstleistungs GmbH


--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team

Reply via email to