summaryrefslogtreecommitdiff
path: root/specs/comments.yml
diff options
context:
space:
mode:
authorPieter van de Bruggen <pvande@gmail.com>2011-03-08 21:16:14 -0800
committerPieter van de Bruggen <pvande@gmail.com>2011-03-08 21:16:14 -0800
commit3e800d1ebcc86fa2e0f243f2ceb75acbb65c16f9 (patch)
tree3bc47c248acf34e7bfee34bbad9deb950614e49e /specs/comments.yml
parente3dca60d52c15757de4922dea366e7f0e4199745 (diff)
parent53b22b1bf883736de97cb1712496315b67a2008e (diff)
downloadmustache-spec-3e800d1ebcc86fa2e0f243f2ceb75acbb65c16f9.tar.gz
Merge branch 'v1.0'
Conflicts: Changes specs/inverted.json specs/sections.json
Diffstat (limited to 'specs/comments.yml')
-rw-r--r--specs/comments.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/specs/comments.yml b/specs/comments.yml
index c019666..7b14c7f 100644
--- a/specs/comments.yml
+++ b/specs/comments.yml
@@ -52,6 +52,18 @@ tests:
template: "|\r\n{{! Standalone Comment }}\r\n|"
expected: "|\r\n|"
+ - name: Standalone Without Previous Line
+ desc: Standalone tags should not require a newline to precede them.
+ data: { }
+ template: " {{! I'm Still Standalone }}\n!"
+ expected: "!"
+
+ - name: Standalone Without Newline
+ desc: Standalone tags should not require a newline to follow them.
+ data: { }
+ template: "!\n {{! I'm Still Standalone }}"
+ expected: "!\n"
+
- name: Multiline Standalone
desc: All standalone comment lines should be removed.
data: { }