Currently, the following are treated the same when using the tags as wrappers instead of as template tags:
`This is a
test string.`
`This is a \ntest string.`
Previously, the workaround was to double escape the character, like so:
`This is a \\ntest string.`
However this causes problems with URIs:
`C:\\folder\\newfolder`
I'm open to other ideas. The reason it's possible with the normal tags is because the template literal tags have access to the .raw property of the passed string array, which allows the code to manually handle escape characters.
Currently, the following are treated the same when using the tags as wrappers instead of as template tags:
Previously, the workaround was to double escape the character, like so:
However this causes problems with URIs:
I'm open to other ideas. The reason it's possible with the normal tags is because the template literal tags have access to the
.raw
property of the passed string array, which allows the code to manually handle escape characters.