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

Consider ANSI escape codes when calculating content width #8

Open
lread opened this issue May 18, 2022 · 0 comments
Open

Consider ANSI escape codes when calculating content width #8

lread opened this issue May 18, 2022 · 0 comments

Comments

@lread
Copy link

lread commented May 18, 2022

Problem

I'd love to sometimes add some color to my tables.
But when I do Doric doesn't render my table properly.

Cause

Doric does not consider ANSI escape codes when calculating the content length.
These codes take up no space, but Doric thinks they do.

Next Steps

Like the idea? After we flesh out any details, I'd be happy to create a PR.

@lread lread changed the title Consider ANSI escape codes when content width Consider ANSI escape codes when calculating content width May 18, 2022
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