Permalink
Browse files

Update tests/src/erlydtl_unittests.erl

Added test case for removing newline when {{spaceless}} tag is used
  • Loading branch information...
1 parent 6d1fcaf commit 23e61b44da16e0f9cb2800a179e254632cc4e6a9 @sendtopms sendtopms committed Dec 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 %}">>, [], <<"{%">>},

0 comments on commit 23e61b4

Please sign in to comment.