chalk / wrap-ansi

Wordwrap a string with ANSI escape codes
MIT License
120 stars 25 forks source link

Setting wordWrap to false does not always result in correct wrapping #18

Closed SamVerschueren closed 7 years ago

SamVerschueren commented 7 years ago

With the following piece of text as input

12345678\n901234567890 12345

And, setting wordWrap to false with a character count of 5 currently results in the following output

12345678 901234567890 12345

The reason for this is that this line does not take the wordWrap setting into account.

Fix is coming up!