Your message dated Tue, 13 Aug 2019 19:12:57 +0000
with message-id <[email protected]>
and subject line Bug#934547: Removed package(s) from unstable
has caused the Debian Bug report #463841,
regarding Bug with entities in textual nodes
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
463841: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=463841
Debian Bug Tracking System
Contact [email protected] with problems
--- 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 ---
Version: 1.2-3+rm

Dear submitter,

as the package python-trml2pdf has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/934547

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to