reportlab/platypus/paraparser.py
changeset 2836 66fb84201abe
parent 2748 d8f9e5a985a2
child 2857 487dc2450eec
--- a/reportlab/platypus/paraparser.py	Mon Jul 23 17:31:27 2007 +0000
+++ b/reportlab/platypus/paraparser.py	Thu Aug 09 09:56:48 2007 +0000
@@ -58,6 +58,12 @@
         except ValueError:
             return float(s)*unit
 
+def _autoLeading(x):
+    x = x.lower()
+    if x in ('','min','max','off'):
+        return x
+    raise ValueError('Invalid autoLeading=%r' % x )
+
 def _align(s):
     s = string.lower(s)
     if s=='left': return TA_LEFT
@@ -71,6 +77,7 @@
                 'fontsize': ('fontSize', _num),
                 'size': ('fontSize', _num),
                 'leading': ('leading', _num),
+                'autoleading': ('autoLeading', _autoLeading),
                 'lindent': ('leftIndent', _num),
                 'rindent': ('rightIndent', _num),
                 'findent': ('firstLineIndent', _num),