Fixes to attribute handling and test script
authorrgbecker
Fri, 14 Apr 2000 09:25:38 +0000
changeset 123 daa339ac3104
parent 122 fd68411f49db
child 124 460067beef7e
Fixes to attribute handling and test script
reportlab/platypus/paraparser.py
--- a/reportlab/platypus/paraparser.py	Fri Apr 14 08:56:20 2000 +0000
+++ b/reportlab/platypus/paraparser.py	Fri Apr 14 09:25:38 2000 +0000
@@ -269,7 +269,7 @@
 				j = attrMap[k]
 				func = j[1]
 				try:
-					A[j[0]] = (func is None) and val or apply(func,(v,))
+					A[j[0]] = (func is None) and v or apply(func,(v,))
 				except:
 					self.syntax_error('%s: invalid value %s'%(k,v))
 			else:
@@ -391,10 +391,9 @@
 	of Jove, from whatsoever source you<super>1</super> may know them.
 	'''
 	text = cleanBlockQuotedText(text)
-	rv = _parser.parse(text,style)
+	l,rv = _parser.parse(text,style)
 	if rv is None:
-		for (None,l) in _parser.errors:
+		for l in _parser.errors:
 			print l
 	else:
-		for l in rv:
-			print l.fontName,l.fontSize,l.textColor,l.bold, l.rise, l.text[:25]
+		print l.fontName,l.fontSize,l.textColor,l.bold, l.rise, l.text[:25]