-
Notifications
You must be signed in to change notification settings - Fork 27
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
Table layout breaks when a value is multiline #51
Comments
Initially addressed by #52 (linking here for tracking) but still missing one issue. Turns out this still breaks in an edge case: If the first line is exactly the max length, adding the |
Latest PR should fix this |
Released |
Looks great, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If the value of one the columns includes a newline character (and the string before it is smaller than the column's max width) the table layout will break.
This can be reproduced by changing the value in line 28 of
examples/simplest/main.go
toElectric\nhello
This is because the rune width of the first line is smaller than the max width, I believe the expected behavior should be to only show the first line appended by the dots (to indicate it includes further data).
The text was updated successfully, but these errors were encountered: