src/reportlab/platypus/paraparser.py
changeset 4277 838129322a55
parent 4255 89ea1d46b4a0
child 4315 7c65c6e52b13
--- a/src/reportlab/platypus/paraparser.py	Wed Jun 01 12:10:52 2016 +0100
+++ b/src/reportlab/platypus/paraparser.py	Mon Jun 06 14:27:51 2016 +0100
@@ -204,6 +204,7 @@
                 'texttransform':('textTransform',_textTransformConv),
                 'enddots':('endDots',None),
                 'underlineproportion':('underlineProportion',_num),
+                'spaceshrinkage':('spaceShrinkage',_num),
                 }
 
 _bulletAttrMap = {
@@ -1027,7 +1028,7 @@
         if 'name' in attr: defn.name = attr['name']
         else: self._syntax_error('<onDraw> needs at least a name attribute')
 
-        if 'label' in attr: defn.label = attr['label']
+        defn.label = attr.get('label',None)
         defn.kind='onDraw'
         self._push('ondraw',cbDefn=defn)
         self.handle_data('')