Closed shellscape closed 7 years ago
What makes you say it's a Meow bug and not just Chalk?
Could be 😄 wanted to log the issue, and since I've not run into that problem with chalk in raw output in other situations before, it seemed the logical choice.
But did you try that Chalk call without Meow?
This was indeed a bug in chalk 2.0.0 and 2.0.1. It was fixed in chalk 2.1.0.
To update: npm install chalk
It would seem that when using chalk tagged template literals (I haven't tested using chalk straight up in template literals) the formatting for meow's help goes awry.
Test snippet:
Results in:
Notice the lack of spacing between sections, which is present in the template literal passed to meow. If I double the spaces between the sections in the string, then I get the expected one space between sections in the output.
Now, if I go with this plain, non-chalk string:
I get the output I would expect:
I haven't had a chance to look at the code, but my guess is that it's not considering color/formatting codes when doing it's thing on the whitespace.