Skip to content
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions specs/partials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,27 @@ tests:
|
/

- name: Standalone Indentation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add something to this name to distinguish it from the previous test.

desc: Indentation should only be applied after each newline in a partial.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This description is not strictly true, because the indentation should also be applied to the first line, before any newline.

data: { content: "<\n->" }
template: |
\
{{>partial}}
/
partials:
partial: |
|
{{{content}}}a b{{{content}}}c
|
expected: |
\
|
<
->a b<
->c
|
/

# Whitespace Insensitivity

- name: Padding Whitespace
Expand Down