src/reportlab/lib/rl_accel.py
changeset 4389 61a7f0840d00
parent 4089 ca6c60fd1f62
child 4413 dec33c7e7922
equal deleted inserted replaced
4388:9f93d62b9f6e 4389:61a7f0840d00
   318 if 'sameFrag' in _py_funcs:
   318 if 'sameFrag' in _py_funcs:
   319     def sameFrag(f,g):
   319     def sameFrag(f,g):
   320         'returns 1 if two ParaFrags map out the same'
   320         'returns 1 if two ParaFrags map out the same'
   321         if (hasattr(f,'cbDefn') or hasattr(g,'cbDefn')
   321         if (hasattr(f,'cbDefn') or hasattr(g,'cbDefn')
   322                 or hasattr(f,'lineBreak') or hasattr(g,'lineBreak')): return 0
   322                 or hasattr(f,'lineBreak') or hasattr(g,'lineBreak')): return 0
   323         for a in ('fontName', 'fontSize', 'textColor', 'rise', 'underline', 'strike', 'link', "backColor"):
   323         for a in ('fontName', 'fontSize', 'textColor', 'rise', 'us_lines', 'link', "backColor"):
   324             if getattr(f,a,None)!=getattr(g,a,None): return 0
   324             if getattr(f,a,None)!=getattr(g,a,None): return 0
   325         return 1
   325         return 1
   326     _py_funcs['sameFrag'] = sameFrag
   326     _py_funcs['sameFrag'] = sameFrag
   327 
   327 
   328 G=globals()
   328 G=globals()