Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update tests/src/erlydtl_unittests.erl

Added test case for removing newline when {{spaceless}} tag is used
  • Loading branch information...
commit 23e61b44da16e0f9cb2800a179e254632cc4e6a9 1 parent 6d1fcaf
@sendtopms sendtopms authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  tests/src/erlydtl_unittests.erl
View
3  tests/src/erlydtl_unittests.erl
@@ -1001,7 +1001,8 @@ tests() ->
{"spaceless", [
{"Beginning", <<"{% spaceless %} <b>foo</b>{% endspaceless %}">>, [], <<"<b>foo</b>">>},
{"Middle", <<"{% spaceless %}<b>foo</b> <b>bar</b>{% endspaceless %}">>, [], <<"<b>foo</b><b>bar</b>">>},
- {"End", <<"{% spaceless %}<b>foo</b> {% endspaceless %}">>, [], <<"<b>foo</b>">>}
+ {"End", <<"{% spaceless %}<b>foo</b> {% endspaceless %}">>, [], <<"<b>foo</b>">>},
+ {"NewLine", <<"{% spaceless %}\n<div> \n <b>foo</b> \n </div>\n {% endspaceless %}">>, [], <<"<div><b>foo</b></div>">>}
]},
{"templatetag", [
{"openblock", <<"{% templatetag openblock %}">>, [], <<"{%">>},
Please sign in to comment.
Something went wrong with that request. Please try again.