Re: Patch to support tables with oversize cells
Robin Becker <[email protected]> Thu, 26 May 2022 13:28:15 +0100
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <[email protected]> |
Hi again Lennart, I made some progress cleaning up the ImageReader class and now I can generate the userguide. However, that allows another case to fail which is in > python test_platypus_accum.py > .E > ====================================================================== > ERROR: test2 (__main__.TablesTestCase > ...... > File "/home/robin/devel/reportlab/reportlab/platypus/tables.py", line 2032, in split > result = self._splitRows(availHeight, doInRowSplit=not self.splitByRow) > File "/home/robin/devel/reportlab/reportlab/platypus/tables.py", line 1589, in _splitRows > data = deepcopy(self._cellvalues) > ...... > File "/home/robin/devel/reportlab/.py310/lib/python3.10/copyreg.py", line 101, in __newobj__ > return cls.__new__(cls, *args) > TypeError: onDrawStr.__new__() missing 2 required positional arguments: 'onDraw' and 'label' not sure I understand this error; something to do with PageAccumulator goes wrong. On 26/05/2022 13:11, Lennart Regebro wrote: > Uh, yeah, I suddenly realized that the problem I solved with copying the > table must be solved later down in the standard split code, so that must be > entirely unnecessary. > > I'll fix that. > .........-- Robin Becker