summaryrefslogtreecommitdiff
path: root/specs/comments.yml
diff options
context:
space:
mode:
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: { }