Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] report: line splitting compatible with reportlab > 3.0
While keeping the compatibility for reportlab 2.5. Splitting the text node on line breaks '\n' leaded to orphans ending tags, like '</font>', which is regarded by reportlab 3.0 as a paragraph, and reportlab therefore surrounded these tags by <para> tags, which leaded to not syntax correct html like <para></font></para> To test this patch: - While having reportlab > 3.0 - Create a rml report containing (at least) '<font>\n</font>' - Then print the report. It must not crash (obviously)
- Loading branch information