src/reportlab/platypus/doctemplate.py
branchrtl-support
changeset 3486 55cc3834554a
parent 3467 4f25b3a34c5f
--- a/src/reportlab/platypus/doctemplate.py	Thu Oct 21 10:34:13 2010 +0000
+++ b/src/reportlab/platypus/doctemplate.py	Wed Jan 26 14:03:05 2011 +0000
@@ -773,9 +773,9 @@
                 else:
                     n = 0
                 if n:
-                    if not isinstance(S[0],(PageBreak,SlowPageBreak,ActionFlowable)):
+                    if not isinstance(S[0],(PageBreak,SlowPageBreak,ActionFlowable,LIIndenter)):
                         if not frame.add(S[0], canv, trySplit=0):
-                            ident = "Splitting error(n==%d) on page %d in\n%s" % (n,self.page,self._fIdent(f,60,frame))
+                            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
                             raise LayoutError(ident)
                         self._curPageFlowableCount += 1