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

Text with ANSI color codes may not survive wrapping #48

Open
lancestarr opened this issue Aug 27, 2020 · 2 comments
Open

Text with ANSI color codes may not survive wrapping #48

lancestarr opened this issue Aug 27, 2020 · 2 comments

Comments

@lancestarr
Copy link

If text for a cell contains ANSI color or formatting codes that, after wrapping, spans a line break, the codes aren't copied over to each line of the cell.

@tleonhardt
Copy link
Member

@lancestarr Thanks for reporting this issue Lance. If you would like to submit a PR, that would be greatly appreciated.

@lancestarr
Copy link
Author

Some users may be able to work around this issue by colorizing rows. You can do that when building your list of rows, or—if you're doing the object iteration approach—you can use a row tagger (see formatters.py for an example of this).

Feel free to comment on this to clarify what I'm trying to say. I'm new to tableformatter and there may be better ways to express this suggestion.

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