reportlab/platypus/paraparser.py
changeset 2410 f505ed647678
parent 2376 7e70411a7236
child 2446 6b9268ab33c3
equal deleted inserted replaced
2409:0a056aeb6a2c 2410:f505ed647678
    17 
    17 
    18 from reportlab.lib.colors import toColor, white, black, red, Color
    18 from reportlab.lib.colors import toColor, white, black, red, Color
    19 from reportlab.lib.fonts import tt2ps, ps2tt
    19 from reportlab.lib.fonts import tt2ps, ps2tt
    20 from reportlab.lib.enums import TA_LEFT, TA_RIGHT, TA_CENTER, TA_JUSTIFY
    20 from reportlab.lib.enums import TA_LEFT, TA_RIGHT, TA_CENTER, TA_JUSTIFY
    21 from reportlab.lib.units import inch,mm,cm,pica
    21 from reportlab.lib.units import inch,mm,cm,pica
    22 _re_para = re.compile('^\\s*<\\s*para(\\s+|>)')
    22 _re_para = re.compile(r'^\s*<\s*para(?:\s+|>|/>)')
    23 
    23 
    24 sizeDelta = 2       # amount to reduce font size by for super and sub script
    24 sizeDelta = 2       # amount to reduce font size by for super and sub script
    25 subFraction = 0.5   # fraction of font size that a sub script should be lowered
    25 subFraction = 0.5   # fraction of font size that a sub script should be lowered
    26 superFraction = 0.5 # fraction of font size that a super script should be raised
    26 superFraction = 0.5 # fraction of font size that a super script should be raised
    27 
    27