Closed kevinkace closed 2 months ago
Describe the bug If a template tag is the last part of a line, then the adjacent newline character is lost.
To Reproduce Steps to reproduce the behavior: If a template tag is the last part of a line, then the adjacent newline character is lost.
Steps to reproduce the behavior:
line before data <%= it.data %> line after data
Expected behavior Newline is preserved
Screenshots
Package & Environment Details Node 20.11.1
Additional context https://replit.com/@kevinkace/eta-tests
This is expected behavior! If you want to change this, you can change autoTrim in the config from [false, 'nl'] (default) to [false, false].
autoTrim
[false, 'nl']
[false, false]
Describe the bug If a template tag is the last part of a line, then the adjacent newline character is lost.
To Reproduce Steps to reproduce the behavior: If a template tag is the last part of a line, then the adjacent newline character is lost.
Steps to reproduce the behavior:
Expected behavior Newline is preserved
Screenshots![image](https://github.com/eta-dev/eta/assets/532448/932f4bb0-0a9a-4c06-b895-1cd667a3eb9b)
Package & Environment Details Node 20.11.1
Additional context https://replit.com/@kevinkace/eta-tests