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 5f0dafb..5f8e2b2 100644
--- a/specs/inverted.yml
+++ b/specs/inverted.yml
@@ -172,6 +172,18 @@ tests:
template: "|\r\n{{^boolean}}\r\n{{/boolean}}\r\n|"
expected: "|\r\n|"
+ - name: Standalone Without Previous Line
+ desc: Standalone tags should not require a newline to precede them.
+ data: { boolean: false }
+ template: " {{^boolean}}\n^{{/boolean}}\n/"
+ expected: "^\n/"
+
+ - name: Standalone Without Newline
+ desc: Standalone tags should not require a newline to follow them.
+ data: { boolean: false }
+ template: "^{{^boolean}}\n/\n {{/boolean}}"
+ expected: "^\n/\n"
+
# Whitespace Insensitivity
- name: Padding