-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strip indent having issues when using something like util.inspect #109
Comments
I think I came across a similar issue. The problem, I think, is that if you have some interpolated values that don't have any leading whitespace, that becomes the minimum whitespace. Then, This is a little surprising to me, because I expected template tags to operate on the template literal before interpolation, rather than not after, but I haven't fully understood how this stuff all works yet. |
Aha! In this case, you're actually meant to use the This tag is also aliased to |
Hi, I can confirm that the issue is there in v1.4.0. I can't check right now whether it was fixed in #114, but will do so later today. In any case, a version with a fix should be released in a matter of days - keep your fingers crossed 🤞 |
@ibrahima is right - "fixing" |
When I'm including data that was serialized using node's
util.inspect
function,stripIndent
seems to be making some mistakes on how to handle the indent stripping. Here's the script and the output as an example:Actual output:
Expected output:
The text was updated successfully, but these errors were encountered: