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

Tabs in source text result in misaligned table borders #25

Closed
briankung opened this issue May 14, 2022 · 2 comments
Closed

Tabs in source text result in misaligned table borders #25

briankung opened this issue May 14, 2022 · 2 comments

Comments

@briankung
Copy link

Hopefully I'll be able to post a minimal reproducible example soon, but it should be easy to recreate. Just have a multi-line string as one of the cell values and include tabs in some of the lines.

Thanks for the great crate! As a stop-gap measure I just replaced the tabs with spaces when displaying the table.

@devashishdxt
Copy link
Owner

Thanks for creating this issue.

This crate uses unicode-width to calculate display width of a string and it has an open issue for this: unicode-rs/unicode-width#6

I'm not sure there's a good workaround right now other than replacing tabs with spaces. Other crates which depend on unicode-width also have the same issue.

@briankung
Copy link
Author

Ah, gotcha. Happy to close this and follow the other issue. Thanks for pointing me towards it!

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