diff options
author | Pieter van de Bruggen <pvande@gmail.com> | 2011-03-08 21:16:14 -0800 |
---|---|---|
committer | Pieter van de Bruggen <pvande@gmail.com> | 2011-03-08 21:16:14 -0800 |
commit | 3e800d1ebcc86fa2e0f243f2ceb75acbb65c16f9 (patch) | |
tree | 3bc47c248acf34e7bfee34bbad9deb950614e49e /specs/inverted.yml | |
parent | e3dca60d52c15757de4922dea366e7f0e4199745 (diff) | |
parent | 53b22b1bf883736de97cb1712496315b67a2008e (diff) | |
download | mustache-spec-3e800d1ebcc86fa2e0f243f2ceb75acbb65c16f9.tar.gz |
Merge branch 'v1.0'
Conflicts:
Changes
specs/inverted.json
specs/sections.json
Diffstat (limited to 'specs/inverted.yml')
-rw-r--r-- | specs/inverted.yml | 12 |
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 |