Skip to content

Commit ecabc91

Browse files
committed
Add the new per-lint indenting test as a separate example.
1 parent 9c5a655 commit ecabc91

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

specs/partials.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,27 @@ tests:
8787
expected: ">\n >\n >"
8888

8989
- name: Standalone Indentation
90-
desc: Each new line of the partial should be indented before rendering.
90+
desc: Each line of the partial should be indented before rendering.
91+
data: { content: "<\n->" }
92+
template: |
93+
\
94+
{{>partial}}
95+
/
96+
partials:
97+
partial: |
98+
|
99+
{{{content}}}
100+
|
101+
expected: |
102+
\
103+
|
104+
<
105+
->
106+
|
107+
/
108+
109+
- name: Standalone Indentation
110+
desc: Indentation should only be applied after each newline in a partial.
91111
data: { content: "<\n->" }
92112
template: |
93113
\

0 commit comments

Comments
 (0)