Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Testcase implemented #58

Merged
merged 1 commit into from

2 participants

@sendtopms

Added test case for removing newline when {{spaceless}} tag is used

@sendtopms sendtopms Update tests/src/erlydtl_unittests.erl
Added test case for removing newline when {{spaceless}} tag is used
23e61b4
@evanmiller evanmiller merged commit 3306858 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 29, 2012
  1. @sendtopms

    Update tests/src/erlydtl_unittests.erl

    sendtopms authored
    Added test case for removing newline when {{spaceless}} tag is used
This page is out of date. Refresh to see the latest.
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 %}">>, [], <<"{%">>},
Something went wrong with that request. Please try again.