[reportlab-users] Crash when creating vertical spans on split tables

Robin Becker robin at reportlab.com
Fri Nov 4 13:43:31 EDT 2011

On 04/11/2011 17:06, Aaron Barlow wrote:

> I had that same problem. I fixed it by adjusting the source code in tables.py from:


> t = sum([V[x]+M.get(x,0) for x in xrange(x0,x1)]) on line 205


> to


> for x in xrange(x0, x1):

> if V[x] is None:

> continue

> t += V[x]+M.get(x,0)


> The error is because spanning in PDF tables creates a "super-cell" and a vertical split of a table cell isn't defined. I'm sure someone will correct me if I'm wrong about that. However, for my needs, changing the source code above removed the error.


Not sure that this is right, but I will try and check at the weekend.
Robin Becker

More information about the reportlab-users mailing list