Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fit_text() #1026

Open
denis-x opened this issue Nov 4, 2024 · 0 comments
Open

fit_text() #1026

denis-x opened this issue Nov 4, 2024 · 0 comments

Comments

@denis-x
Copy link

denis-x commented Nov 4, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant