Skip to content

Commit 673d40c

Browse files
committed
Enhance the Standalone Indentation test
The indentation should only be applied at the start of a line.
1 parent 83b0721 commit 673d40c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

specs/partials.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ tests:
8080
expected: ">\n >\n >"
8181

8282
- name: Standalone Indentation
83-
desc: Each line of the partial should be indented before rendering.
83+
desc: Each new line of the partial should be indented before rendering.
8484
data: { content: "<\n->" }
8585
template: |
8686
\
@@ -89,13 +89,14 @@ tests:
8989
partials:
9090
partial: |
9191
|
92-
{{{content}}}
92+
{{{content}}}a b{{{content}}}c
9393
|
9494
expected: |
9595
\
9696
|
9797
<
98-
->
98+
->a b<
99+
->c
99100
|
100101
/
101102

0 commit comments

Comments
 (0)