dmnd/dedent

Newline issue

jasonkuhrt opened this issue · 2 comments

Started here indentjs/endent#8

More details here graphql-nexus/nexus-prisma#50

The issue is that if \n shows up in a template string it gets read as a newline.

There's a lot of text to read through in those two linked issues & their linked issues, and I lost track of where the problem is in this dedent specifically. Could you/someone please post a concrete example of using dedent in a way that shows the bug - including expected & actual outputs for some input?

This might be related to / even a duplicate of #22 -> #12.

Character escaping logic was reworked a bit in #2 / #45 / #46 / #65. Since this one has been sitting for a bit and might be a dup of #12, closing out to keep the issue queue small. Please let me know if that's wrong! ❤️