python-pptx
python-pptx copied to clipboard
fit_text()
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