src/reportlab/platypus/paraparser.py
changeset 4277 838129322a55
parent 4255 89ea1d46b4a0
child 4315 7c65c6e52b13
equal deleted inserted replaced
4276:e834b7475072 4277:838129322a55
   202                 'bordercolor': ('borderColor',toColor),
   202                 'bordercolor': ('borderColor',toColor),
   203                 'borderradius': ('borderRadius',_num),
   203                 'borderradius': ('borderRadius',_num),
   204                 'texttransform':('textTransform',_textTransformConv),
   204                 'texttransform':('textTransform',_textTransformConv),
   205                 'enddots':('endDots',None),
   205                 'enddots':('endDots',None),
   206                 'underlineproportion':('underlineProportion',_num),
   206                 'underlineproportion':('underlineProportion',_num),
       
   207                 'spaceshrinkage':('spaceShrinkage',_num),
   207                 }
   208                 }
   208 
   209 
   209 _bulletAttrMap = {
   210 _bulletAttrMap = {
   210                 'font': ('bulletFontName', None),
   211                 'font': ('bulletFontName', None),
   211                 'face': ('bulletFontName', None),
   212                 'face': ('bulletFontName', None),
  1025     def start_ondraw(self,attr):
  1026     def start_ondraw(self,attr):
  1026         defn = ABag()
  1027         defn = ABag()
  1027         if 'name' in attr: defn.name = attr['name']
  1028         if 'name' in attr: defn.name = attr['name']
  1028         else: self._syntax_error('<onDraw> needs at least a name attribute')
  1029         else: self._syntax_error('<onDraw> needs at least a name attribute')
  1029 
  1030 
  1030         if 'label' in attr: defn.label = attr['label']
  1031         defn.label = attr.get('label',None)
  1031         defn.kind='onDraw'
  1032         defn.kind='onDraw'
  1032         self._push('ondraw',cbDefn=defn)
  1033         self._push('ondraw',cbDefn=defn)
  1033         self.handle_data('')
  1034         self.handle_data('')
  1034         self._pop('ondraw')
  1035         self._pop('ondraw')
  1035     start_onDraw=start_ondraw 
  1036     start_onDraw=start_ondraw