Closed danilosampaio closed 7 years ago
marking as a bug. thanks for reporting.
Line breaks get duplicated even when the line breaks aren't at the max width.
wrap("aaa\nbbb")
becomes " aaa\n\n bbb"
I just noticed this as well independently, thanks for verifying.
For example:
wrap('asdfg\nqwert', {width:5})
Results:
Instead of: