summaryrefslogtreecommitdiff
path: root/specs/sections.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/sections.yml')
-rw-r--r--specs/sections.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/specs/sections.yml b/specs/sections.yml
index c99b5ef..c5cd668 100644
--- a/specs/sections.yml
+++ b/specs/sections.yml
@@ -195,6 +195,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: true }
+ template: " {{#boolean}}YES{{/boolean}}\n {{#boolean}}GOOD{{/boolean}}\n"
+ expected: " YES\n GOOD\n"
+
- name: Standalone Lines
desc: Standalone lines should be removed from the template.
data: { boolean: true }
@@ -223,6 +229,12 @@ tests:
|
| A Line
+ - name: Standalone Line Endings
+ desc: '"\r\n" should be considered a newline for standalone tags.'
+ data: { boolean: true }
+ template: "|\r\n{{#boolean}}\r\n{{/boolean}}\r\n|"
+ expected: "|\r\n|"
+
# Whitespace Insensitivity
- name: Padding