diff options
| author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2016-07-31 15:39:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-07-31 15:39:04 +0200 |
| commit | 9e41414880718d5f18e4ae771ef21fc9447d1b60 (patch) | |
| tree | 63659f9864780c9d50d474cb59c4d18f673c60cb /tests/data | |
| parent | 68e9c7704216f88b73162963c06ef80616ff318a (diff) | |
| parent | a31a5654036c8d8b43d24d3d8cef4e342c517a47 (diff) | |
| download | hakyll-9e41414880718d5f18e4ae771ef21fc9447d1b60.tar.gz | |
Merge pull request #454 from samgd/whitespace-control
Whitespace trimming
Diffstat (limited to 'tests/data')
| -rw-r--r-- | tests/data/strip.html | 34 | ||||
| -rw-r--r-- | tests/data/strip.html.out | 18 |
2 files changed, 52 insertions, 0 deletions
diff --git a/tests/data/strip.html b/tests/data/strip.html new file mode 100644 index 0000000..d28571e --- /dev/null +++ b/tests/data/strip.html @@ -0,0 +1,34 @@ +<div> + I'm so rich I have $$3. + + $rev("foo")$ + $-rev(rev("foo"))$ + + $if(body)-$ + I have body + $else-$ + or no + $-endif-$ + + $if(unbound)$ + should not be printed + $endif$ + + $-if(body)-$ + should be printed + $-endif$ + + <ul> + $for(authors)-$ + <li>$name$</li> + $endfor-$ + </ul> + + $for(authors)-$ + $name-$ + $sep$, + $-endfor$ + + $body$ +</div> + diff --git a/tests/data/strip.html.out b/tests/data/strip.html.out new file mode 100644 index 0000000..9b37e69 --- /dev/null +++ b/tests/data/strip.html.out @@ -0,0 +1,18 @@ +<div> + I'm so rich I have $3. + + ooffoo + + I have body + should be printed + + <ul> + <li>Jan</li> + <li>Piet</li> + </ul> + + Jan,Piet + + <p>This is an example.</p> +</div> + |
