You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After update to 0.2.12, unit tests involving xhtml2pdf started to fail with TypeError.
Expected Behavior
xhtml2pdf should work as before
Actual Behavior
Error with stack trace:
for i, colWidth in enumerate(newColWidths):
if (colWidth is not None) or (colWidth == "*"):
newColWidth = self._normWidth(colWidth, totalWidth)
> remainingWidth -= colWidth
E TypeError: unsupported operand type(s) for -=: 'float' and 'str'
..\..\AppData\Local\Programs\Python\Python310\lib\site-packages\xhtml2pdf\xhtml2pdf_reportlab.py:832: TypeError
Patching the offending line to use newColWidth instead of colWidth resolves the error.
System Information
OS version: both Windows 10 and Linux
Python version: 3.10
XHTML2PDF version: 0.2.12
The text was updated successfully, but these errors were encountered:
Describe the Bug
After update to 0.2.12, unit tests involving xhtml2pdf started to fail with TypeError.
Expected Behavior
xhtml2pdf should work as before
Actual Behavior
Error with stack trace:
Patching the offending line to use
newColWidth
instead ofcolWidth
resolves the error.System Information
OS version: both Windows 10 and Linux
Python version: 3.10
XHTML2PDF version: 0.2.12
The text was updated successfully, but these errors were encountered: