summaryrefslogtreecommitdiff
path: root/specs/inverted.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/inverted.yml')
-rw-r--r--specs/inverted.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/specs/inverted.yml b/specs/inverted.yml
index 9713188..d628757 100644
--- a/specs/inverted.yml
+++ b/specs/inverted.yml
@@ -106,6 +106,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 }