doctemplate/flowables.py: fix DDIndenter split issue
authorrgbecker
Wed, 29 Jun 2011 10:17:06 +0000
changeset 3528 5c3249611b60
parent 3527 791695eb1b19
child 3529 96c3c28f6cb3
doctemplate/flowables.py: fix DDIndenter split issue
src/reportlab/platypus/doctemplate.py
src/reportlab/platypus/flowables.py
--- a/src/reportlab/platypus/doctemplate.py	Wed Jun 29 09:57:21 2011 +0000
+++ b/src/reportlab/platypus/doctemplate.py	Wed Jun 29 10:17:06 2011 +0000
@@ -781,7 +781,7 @@
                 else:
                     n = 0
                 if n:
-                    if not isinstance(S[0],(PageBreak,SlowPageBreak,ActionFlowable,LIIndenter)):
+                    if not isinstance(S[0],(PageBreak,SlowPageBreak,ActionFlowable,DDIndenter)):
                         if not frame.add(S[0], canv, trySplit=0):
                             ident = "Splitting error(n==%d) on page %d in\n%s\nS[0]=%s" % (n,self.page,self._fIdent(f,60,frame),self._fIdent(S[0],60,frame))
                             #leave to keep apart from the raise
--- a/src/reportlab/platypus/flowables.py	Wed Jun 29 09:57:21 2011 +0000
+++ b/src/reportlab/platypus/flowables.py	Wed Jun 29 10:17:06 2011 +0000
@@ -37,7 +37,7 @@
 __all__=('TraceInfo','Flowable','XBox','Preformatted','Image','Spacer','PageBreak','SlowPageBreak',
         'CondPageBreak','KeepTogether','Macro','CallerMacro','ParagraphAndImage',
         'FailOnWrap','HRFlowable','PTOContainer','KeepInFrame','UseUpSpace',
-        'ListFlowable','ListItem','LIIndenter',
+        'ListFlowable','ListItem','DDIndenter','LIIndenter',
         'DocAssign', 'DocExec', 'DocAssert', 'DocPara', 'DocIf', 'DocWhile',
         )
 class TraceInfo: