Closed jacklinke closed 3 years ago
Thank you for reporting this issue. The error was caused by my foolish way of splitting a string into head, body, and tail. I have fixed the bug and I have greatly improved the indenting algorithm in the latest version of DjHTML. I have included your code sample in the tests and as you can see the multiline template literal is now rendered correctly without errors \o/
Backticked multi-line JS template literals cause DjHTML to trip.
For instance, the following example:
Causes this output:
If I simply remove the function return, it works as expected.
Likewise, a single-line string like this works fine: