tableformatter icon indicating copy to clipboard operation
tableformatter copied to clipboard

Text with ANSI color codes may not survive wrapping

Open lancestarr opened this issue 5 years ago • 2 comments

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.

lancestarr avatar Aug 27 '20 16:08 lancestarr

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

tleonhardt avatar Aug 27 '20 16:08 tleonhardt

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.

lancestarr avatar Aug 27 '20 16:08 lancestarr