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

Trimming text before computing width should be optional. #6

Open
jay-jlm opened this issue Dec 19, 2019 · 1 comment
Open

Trimming text before computing width should be optional. #6

jay-jlm opened this issue Dec 19, 2019 · 1 comment

Comments

@jay-jlm
Copy link

jay-jlm commented Dec 19, 2019

For my use case I need to the metrics to include whitespace characters in the of the string.
Currently does not seem to be possible, since it calls .trim() on the string before computing the results.

@bezoerb
Copy link
Owner

bezoerb commented Dec 20, 2019

This is because the whitespaces normally collapse. If you like you could do a PR making this configurable using the current behavior as default?

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

2 participants