Comments (6)
Thank you for getting back to me so quickly @jedib0t . I tried the workaround you suggested and it worked perfectly. Thanks a lot mate.
Btw, what I said was not just a complement! That's a beautiful piece of work buddy. Good on ya!
from go-pretty.
Yeah I have a fix in the pipeline for this. Give me a day or two. See if you can use the commit hash instead of the version tag.
from go-pretty.
Hey thanks for the compliments. My first open-source project, so I'm a little attached to it at the moment. 😄
Found the bug b.t.w, your custom transformer is returning Bold text which looks like this with escape sequences: �[1m10000�[0m
. The code then applies the style's formatter for the footer which is text.FormatUpper
which converts the case-sensitive escape sequences too: �[1M10000�[0M
. And this is basically garbage to the terminal emulator. I'm guessing the same bug should be show up in headers too if you use TransformerHeader
.
I'll fix it this week. 👍
But if you can't wait for a fix until then, you can use this workaround before calling t.Render()
:
t.Style().Format.Footer = text.FormatDefault
from go-pretty.
@xitonix Thanks for reporting the bug btw. I appreciate it!
from go-pretty.
Hey @xitonix the latest code in master
branch has the fix (d24d83b, 8b58fba). I'll cut a tag by end of week.
Out of curiosity, do you use go mod
or dep
for dependency management? I transitioned to go mod
some time back, but I figured recently that I've not done major versioning the way go mod
likes it. I can fix that, but that may break dep
support.
from go-pretty.
Hey mate. I do use go mod, but because of the reason you mentioned yourself above, it cannot pick up the right version unfortunately. But I don't really understand why go mod always fetches v4.3.0 while you don't even have a v4 branch, even though I explicitly asked for v5.0.1! This is what appears in my go.mod
file after I run:
go get github.com/jedib0t/[email protected]
github.com/jedib0t/go-pretty v4.3.0+incompatible
from go-pretty.
Related Issues (20)
- Progress bar duplicated HOT 1
- align issue when set max width for non-ascii char HOT 1
- Color for autoindex HOT 1
- [progress v6] Question: Using SetOutputWriter(os.Stderr) ignore my own errors in the console HOT 1
- Allow border colors to be set in style HOT 5
- Vertical AutoMerge keeps unnecessary whitespace when a merged row value is wrapped by WidthMax HOT 1
- Specify row color on table.AppendRow HOT 2
- Header autoMerge bug HOT 10
- Table header separator HOT 1
- [BUG] Setting style and title at the same time will cause problems with the output HOT 12
- Hightlighting specify row HOT 2
- Cursor is moved while monitor progress in windows terminal HOT 2
- Progress - dump disorderly if the number of items to be monitored is bigger than the lines of one screen HOT 3
- Go get github.com/jedib0t/go-pretty/v6 have a problem HOT 1
- Table - Allow `RenderCsv` to be formatted with tabs instead of comma HOT 5
- Markdown table row with multiline string adds <br/> HOT 2
- column auto merge have minor wrong behavior HOT 3
- Why carriage return character '\r' is dropped when rendering? HOT 6
- The upgrade from v6.4.0 to v6.4.1 results in empty table content when used in our product. HOT 10
- Github lacks enthusiasm reports, which would be necessary with your go-pretty!!! Absolutely fantastic!!! HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-pretty.