Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Colors truncate column widthΒ #69

@mikkergimenez

Description

@mikkergimenez

It seems whenever I use colors, it truncates the column width and causes weird readability issues:

For the following example I used: https://github.com/janlelis/paint

Example:

AAAAAAA                     | BBBBBBBBBBBB          | CCCCCC                 | DDDDDD                         | EEEEEEE        | FFFFFFFF
----------------------------|-----------------------|-----------------------|--------------------------------|----------------|---------------
aaaaaaaa_aaaaaaa_aaaaaaaaaa | b/b                   | c/c                   | d/d                            | eeee  | ffff
aaaaa_aaaaaaa-aaaaaaaaaa-aa | b                     | c                     | ddd                            | eeee | ffff

As you (might) be able to see, column e and f resized to four characters, they were the ones that I colorized.

When I try to colorize C and D, it gets even weirder, removing some columns and inserting special characters.

I assume it has something to do with the way table_print encodes the special table characters, but not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions