summaryrefslogtreecommitdiff
path: root/specs/inverted.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/inverted.yml')
-rw-r--r--specs/inverted.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/specs/inverted.yml b/specs/inverted.yml
index a98ddc4..5f0dafb 100644
--- a/specs/inverted.yml
+++ b/specs/inverted.yml
@@ -132,6 +132,12 @@ tests:
template: " | {{^boolean}} {{! Important Whitespace }}\n {{/boolean}} | \n"
expected: " | \n | \n"
+ - name: Indented Inline Sections
+ desc: Single-line sections should not alter surrounding whitespace.
+ data: { boolean: false }
+ template: " {{^boolean}}NO{{/boolean}}\n {{^boolean}}WAY{{/boolean}}\n"
+ expected: " NO\n WAY\n"
+
- name: Standalone Lines
desc: Standalone lines should be removed from the template.
data: { boolean: false }
@@ -160,6 +166,12 @@ tests:
|
| A Line
+ - name: Standalone Line Endings
+ desc: '"\r\n" should be considered a newline for standalone tags.'
+ data: { boolean: false }
+ template: "|\r\n{{^boolean}}\r\n{{/boolean}}\r\n|"
+ expected: "|\r\n|"
+
# Whitespace Insensitivity
- name: Padding