added longTableOptimize config variable
authorrgbecker
Fri, 31 Dec 2004 11:20:06 +0000
changeset 2436 76dc9d73afa9
parent 2435 f652e96e7847
child 2437 aa8f6d49116e
added longTableOptimize config variable
reportlab/platypus/tables.py
reportlab/rl_config.py
--- a/reportlab/platypus/tables.py	Fri Dec 31 11:13:44 2004 +0000
+++ b/reportlab/platypus/tables.py	Fri Dec 31 11:20:06 2004 +0000
@@ -363,7 +363,7 @@
         if not W: W = _calc_pc(self._argW,availWidth)   #widths array
 
         hmax = lim = len(H)
-        longTable = getattr(self,'_longTableOptimize',None)
+        longTable = getattr(self,'_longTableOptimize',rl_config.longTableOptimize)
 
         if None in H:
             canv = getattr(self,'canv',None)
--- a/reportlab/rl_config.py	Fri Dec 31 11:13:44 2004 +0000
+++ b/reportlab/rl_config.py	Fri Dec 31 11:20:06 2004 +0000
@@ -18,6 +18,7 @@
 eps_preview_transparent=    None                    #set to white etc
 overlapAttachedSpace=       1                       #if set non false then adajacent flowable space after
                                                     #and space before are merged (max space is used).
+longTableOptimize =         0                       #default don't use Henning von Bargen's long table optimizations
 _FUZZ=                      1e-6                    #fuzz for layout arithmetic
 
 # places to look for T1Font information