summaryrefslogtreecommitdiffhomepage
path: root/tests/00_syntax/12_block_whitespace_control
diff options
context:
space:
mode:
Diffstat (limited to 'tests/00_syntax/12_block_whitespace_control')
-rw-r--r--tests/00_syntax/12_block_whitespace_control3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/00_syntax/12_block_whitespace_control b/tests/00_syntax/12_block_whitespace_control
index 23f7380..911171c 100644
--- a/tests/00_syntax/12_block_whitespace_control
+++ b/tests/00_syntax/12_block_whitespace_control
@@ -22,7 +22,7 @@ expected too.This is after the block.
-- Testcase --
Whitespace control applies to all block types:
Comment before: | {#- test #} |, after: | {#- test #} |, both: | {#- test -#} |
-Statement before: | {%- print("test") %} |, after: | {% print("test") -%} |, both: | {%- print("test") -%} |
+Statement before: | {%- print("test") %} |, after: | {%+ print("test") -%} |, both: | {%- print("test") -%} |
Expression before: | {{- "test" }} |, after: | {{ "test" -}} |, both: | {{- "test" -}} |
By default whitespace {{ "around a block" }} is retained.
@@ -37,6 +37,7 @@ Stripping works across multiple lines as well:
print("test")
%}
+
Likewise, stripping over multiple lines of trailing whitespace works as
expected too.