diff options
Diffstat (limited to 'specs/sections.yml')
-rw-r--r-- | specs/sections.yml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/specs/sections.yml b/specs/sections.yml index 8723000..ac870b5 100644 --- a/specs/sections.yml +++ b/specs/sections.yml @@ -186,6 +186,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: true } + template: " {{#boolean}}\n#{{/boolean}}\n/" + expected: "#\n/" + + - name: Standalone Without Newline + desc: Standalone tags should not require a newline to follow them. + data: { boolean: true } + template: "#{{#boolean}}\n/\n {{/boolean}}" + expected: "#\n/\n" + # Whitespace Insensitivity - name: Padding |