fatih / color

Color package for Go (golang)
https://pkg.go.dev/github.com/fatih/color
MIT License
7.15k stars 607 forks source link

color: add newline after wrapping text #192

Closed fatih closed 12 months ago

fatih commented 1 year ago

The newline should be added after wrapping the input with escape sequences. That way less or other commands can parse the output correctly.

before:

ss-2023-03-12-160043

after:

ss-2023-03-12-160230

fixes https://github.com/fatih/color/issues/157

fatih commented 8 months ago

This change is released with https://github.com/fatih/color/releases/tag/v1.16.0