summaryrefslogtreecommitdiff
path: root/specs/sections.yml
diff options
context:
space:
mode:
authorPieter van de Bruggen <pvande@gmail.com>2011-03-05 11:47:40 -0800
committerPieter van de Bruggen <pvande@gmail.com>2011-03-05 11:56:39 -0800
commit2f2dea20ca2166ba59efcce91193ac5bca3e82ce (patch)
tree101aa649fd63045c1d5a0574858a3d4c7c5a7b19 /specs/sections.yml
parent5ed5e3a3baa52fd7a4578dfa3162d306e7f5414e (diff)
downloadmustache-spec-2f2dea20ca2166ba59efcce91193ac5bca3e82ce.tar.gz
Adding spec for indented inline sections.
Diffstat (limited to 'specs/sections.yml')
-rw-r--r--specs/sections.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/specs/sections.yml b/specs/sections.yml
index 1688492..7b24a38 100644
--- a/specs/sections.yml
+++ b/specs/sections.yml
@@ -146,6 +146,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 }