python-pptx icon indicating copy to clipboard operation
python-pptx copied to clipboard

fit_text()

Open denis-x opened this issue 1 year ago • 1 comments

Hello,

By using fit_text() I have noticed an issue with text containing special chars like "580.9m↓-11.3m592.2m". It causes exception, because self._break_line in layout.py/_wrap_lines returns None, which cannot be unpacked. And it is seemed, it is not enough just to sanitize _wrap_lines from None result, as return lines=[] did not produce expected result from fit_text(). Also found out, that behavior is quite fuzzy, no exception happens if fit_text() has been executed for normal text in prior. Also no expection happens, if change text like "580.9m ↓-11.3m592.2m" by adding space.

BR Denis

denis-x avatar Nov 04 '24 08:11 denis-x