Closed nitishgargiitd closed 4 years ago
It's expected behavior if there is no room to fit a bar in one line. I haven't seen any "messes up next lines" in example you're referring to:
If you'd like to preserve coloring or affect default truncating behavior, you have to implement custom decorator as described here.
sorry for the delayed response, I am going to try it tomorrow and let you know how the custom decorators solution goes.
When pt.Error.Error() is big enough, it puts '...' at the end and makes the coloring goes away for that line and it messes up next lines.
To reproduce, just simply run the https://github.com/vbauerster/mpb/blob/master/_examples/complex/main.go
and make the terminal width smaller than content length, hopefully it should reproduce the bug.
Platform: Mac OS mpb version: https://github.com/vbauerster/mpb/commit/a55da8df10b6d8d8172eea63c25e65bf975806d6