-
Notifications
You must be signed in to change notification settings - Fork 122
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
Bottom line in box takes the FG color of the last line in table #221
Comments
Thanks for the bug report and the compliments. Sounds like the Row Painter is being invoked for the separator/border incorrectly. I'll look into this tomorrow. |
Looks like I've erased the compliment (I wanted to put it in the main report). You got it, that's all that matters. No worry, I can live with the issue for now. Let me know if my report needs more info. |
Hey @jeanfrancoisgratton --- the latest code in the main branch has the fix. If you can verify with it, I can cut a tag for you. |
@jedib0t , this might seem a bit of a stupid question, but remember, this is about my first full-fledged GO software. How do I go about removing earlier versions of Thanks for your patience... I feel dumb. |
Hey! Don't feel bad.
This should fix go.mod to have just one version of go-pretty, and a |
Well, I was expecting the update to show up before you tagged the version, so I was a bit dumb :) Changed v6.3.6 to v6.3.7 in go.mod once you tagged the repo, go mod tidy, go build and here we go, I can confirm the fix. |
Description
When changing the fore/background colors of rows in a table, the bottom line in the box enclosing the table takes that FG+BG value
To Reproduce
See code way below, with explanations
Expected behavior
Bottom border should be the same as the rest of the borders
Screenshots
Software (please complete the following information):
Additional context
A simple libvirtd client; a port of my Python3 current client. I want the "Running" VMs to be displayed in green, at the bottom of the list, but the bottom border keeps the last line's colors.
Here's my function that displays the VMs with their various states. The struct vmspecs holds all of the various VMs stats (I've snipped part of the code where not pertinent to issue)
This is my very first Go software; to learn a language you need your own project, right, so I'm porting my Python3 tool to Go, so bear with me if you see glaring coding errors.
For all I know, I might be missing something obvious in your package usage.
The text was updated successfully, but these errors were encountered: