[reportlab-users] xml parser error (invalid attribute name class) in paragraph
Robin Becker
robin at reportlab.com
Thu Dec 13 07:49:56 EST 2012
On 12/12/2012 18:09, Jon.Reinsch wrote:
> I developed code using ReportLab 2.5, but after upgrading to 2.6, it fails. An
....
>
> As I said, my code ran fine in ReportLab 2.5. Thanks for any advice you can offer.
>
A quick fix for your issue is to modify the file
reportlab/platypus/paraparser.py using this patch
Index: reportlab/platypus/paraparser.py
===================================================================
--- reportlab/platypus/paraparser.py (revision 3986)
+++ reportlab/platypus/paraparser.py (working copy)
@@ -166,6 +166,7 @@
'backcolor':('backColor',toColor),
'bgcolor':('backColor',toColor),
'style': ('style',None),
+ 'class': ('',None),
}
#things which are valid font attributes
_linkAttrMap = {'size': ('fontSize', _num),
which modifies the _spanAttrMap definition.
--
Robin Becker
More information about the reportlab-users
mailing list