CDATA handler added
authorrgbecker
Mon, 15 May 2000 12:15:29 +0000
changeset 211 52541f1643b6
parent 210 3253b7cf59b1
child 212 b04e22acb4fa
CDATA handler added
reportlab/platypus/paraparser.py
--- a/reportlab/platypus/paraparser.py	Mon May 15 10:58:54 2000 +0000
+++ b/reportlab/platypus/paraparser.py	Mon May 15 12:15:29 2000 +0000
@@ -32,16 +32,19 @@
 #
 ###############################################################################
 #	$Log: paraparser.py,v $
+#	Revision 1.16  2000/05/15 12:15:29  rgbecker
+#	CDATA handler added
+#
 #	Revision 1.15  2000/05/13 16:04:06  rgbecker
 #	made size alias of fontsize for <para>
-#
+#	
 #	Revision 1.14  2000/05/11 14:05:17  rgbecker
 #	Use reportlab.lib.xmllib
 #	
 #	Revision 1.13  2000/04/25 13:07:57  rgbecker
 #	Added license
 #	
-__version__=''' $Id: paraparser.py,v 1.15 2000/05/13 16:04:06 rgbecker Exp $ '''
+__version__=''' $Id: paraparser.py,v 1.16 2000/05/15 12:15:29 rgbecker Exp $ '''
 import string
 import re
 from types import TupleType
@@ -400,6 +403,9 @@
 
 		self.fragList.append(frag)
 
+	def handle_cdata(self,data):
+		self.handle_data(data)
+
 	#----------------------------------------------------------------
 	def parse(self, text, style):
 		"""Given a formatted string will return a list of
@@ -536,3 +542,4 @@
 sun-god, for it was here, she said, that our worst danger would lie.
 Head the ship, therefore, away from the island.''')
 	check_text('''&lt; &gt; &amp; &quot; &apos;''')
+	check_text('''<![CDATA[<>&'"]]>''')