Closed unindented closed 4 years ago
In 5.1.0
I get the same result as in 6.0.0
. I think the change happened in https://github.com/chalk/wrap-ansi/pull/33 which was merged after 5.0.0
. I don't think we should "normalize" the newlines but rather keep them as they were inputted.
Fair enough. So I guess this is a "Won't fix"?
It needs to be addressed in some way. Currently the output it neither untouched or completely normalized. We just need to decide on how we want it to work. I'll let others chime in before submitting a PR.
I think it's totally fine for us to normalize newlines as long as we document the behavior. It's the wanted behavior in most cases.
In
wrap-ansi@5.0.0
all newlines are converted properly:In
wrap-ansi@6.0.0
not all newlines are converted: