duster/js/test_cases/internal_whitespace/main.dust
Tom Alexander 31029bf50b
Add a test for whitespace inside the template.
This is similar to the surrounding whitespace test but for whitespace inside of a tag as opposed to before/after the first element of the template.
2020-05-02 19:30:23 -04:00

139 lines
2.0 KiB
Plaintext

- simple -{~n}
{#names}{.}{/names}
{~n}- new lines -{~n}
{#names}
{.}
{/names}
{~n}- interior tabs -{~n}
{#names} {.} {/names}
{~n}- interior spaces -{~n}
{#names} {.} {/names}
{~n}- empty line with spaces -{~n}
{#names}
{/names}
{~n}- empty line with tabs -{~n}
{#names}
{/names}
{~n}- empty line with spaces, trailing spaces on opening and closing -{~n}
{#names}
{/names}
{~n}- no line, trailing spaces on opening and closing -{~n}
{#names}
{/names}
{~n}- empty line, trailing spaces on opening and closing -{~n}
{#names}
{/names}
{~n}- trailing spaces -{~n}
{#names}
{.}
{/names}
{~n}- tagless line trailing spaces -{~n}
{#names}
{/names}
{#names}
line with content but no tag
{/names}
{~n}- empty line with tabs, trailing tabs on opening and closing -{~n}
{#names}
{/names}
{~n}- no line, trailing tabs on opening and closing -{~n}
{#names}
{/names}
{~n}- empty line, trailing tabs on opening and closing -{~n}
{#names}
{/names}
{~n}- trailing tabs -{~n}
{#names}
{.}
{/names}
{~n}- tagless line trailing tabs -{~n}
{#names}
{/names}
{#names}
line with content but no tag
{/names}
{~n}- empty line with spaces, leading spaces on opening and closing -{~n}
{#names}
{/names}
{~n}- no line, leading spaces on opening and closing -{~n}
{#names}
{/names}
{~n}- empty line, leading spaces on opening and closing -{~n}
{#names}
{/names}
{~n}- leading spaces -{~n}
{#names}
{.}
{/names}
{~n}- tagless line leading spaces -{~n}
{#names}
{/names}
{#names}
line with content but no tag
{/names}
{~n}- empty line with tabs, leading tabs on opening and closing -{~n}
{#names}
{/names}
{~n}- no line, leading tabs on opening and closing -{~n}
{#names}
{/names}
{~n}- empty line, leading tabs on opening and closing -{~n}
{#names}
{/names}
{~n}- leading tabs -{~n}
{#names}
{.}
{/names}
{~n}- tagless line leading tabs -{~n}
{#names}
{/names}
{#names}
line with content but no tag
{/names}