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

Colorization doesn't work with multiple lines containing tag-like cells #5

Closed
TLINDEN opened this issue Oct 24, 2022 · 2 comments
Closed

Comments

@TLINDEN
Copy link
Owner

TLINDEN commented Oct 24, 2022

cat table 
A B C
1 2 <nix>
3 2 <HEWRE>

cat table  | t -s "\s+" 2       
A(1)    B(2)    C(3)    
1       2       <nix>  
3       <bg=lightGreen;fg=black>2</>    <HEWRE>

The 2 in the first line is colorized, the one in the 2nd line not. However it works, if we remove column 3:

cat table  | t -s "\s+" 2 -c 1,2
A(1)    B(2) 
1       2   
3       2   
@TLINDEN
Copy link
Owner Author

TLINDEN commented Oct 24, 2022

This is an issue in gookit/color#52, an invalid regexp modifier is being used (s instead of m).

@TLINDEN
Copy link
Owner Author

TLINDEN commented Oct 24, 2022

Commit 001021d adds a workaround (an ugly one, that is!)

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

1 participant