-
Notifications
You must be signed in to change notification settings - Fork 139
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
Color is not working in nested tables #63
Comments
Yeah this is a known issue and it has to do with Essentially, how nested tables are implemented are as follows:
If the inner table colors were preserved in the first step, this would work as we want. Unfortunately, this is not the case. Nested table support was added as sort of an after-thought/bonus feature. I may have to just implement printing of nested tables with iteration (starting from the outer table and going in), which is non-ideal. |
Thank you for your reply. I tried to add |
ansi escape sequence should be considered in get_sequence_length to support colorful nested table. I have implemented by myself https://github.com/vxfury/tabulate. and with true color supported, too. |
|
A pull request would be greatly appreciated :) |
Is there a support plan for this feature? |
An easy bypass of this issue is to convert the table to string manually with termcolor::colorize, enable the multibyte char, and then limit the width manually. |
@edisonhello can you give code for this 'bypass' ? |
When I try to put a
Table
with a colored cell into anotherTable
the color is not working anymore.Here is an example:
which gives the following output on Ubuntu:
The text was updated successfully, but these errors were encountered: