You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a twig file containing CRLFs at the end of lines, the {% spaceless %}...{% endspaceless %} tags work as expected. In text files containing LF (no carriage return) only, the following output is observed:
[object Object]
Expected behavior: spaceless removes spaces regardless of the style of line feed in a text file Actual behavior: spaceless adds the text [object Object] in the twig output text
Node version: 12.13.1
Twigjs version: 1.14.0
This is occurring under Linux.
The text was updated successfully, but these errors were encountered:
dfinton
changed the title
spaceless in text file with LF-only OEL prints out [object Object]
spaceless in text file with LF-only EOL prints out [object Object]
Dec 10, 2019
Closing due to @maxhelias comment. If this is still not working correctly, please re-open and provide an example of it working in TwigPHP via Twigfiddle and it not working in twig.js using this template.
In a twig file containing CRLFs at the end of lines, the
{% spaceless %}...{% endspaceless %}
tags work as expected. In text files containing LF (no carriage return) only, the following output is observed:[object Object]
Expected behavior: spaceless removes spaces regardless of the style of line feed in a text file
Actual behavior: spaceless adds the text
[object Object]
in the twig output textNode version: 12.13.1
Twigjs version: 1.14.0
This is occurring under Linux.
The text was updated successfully, but these errors were encountered: