caddy/modules/caddyhttp/templates
Thorkild Gregersen 483e31b978
templates: trim windows whitespace in SplitFrontMatter; fix #3386 (#3387)
* add test case for SplitFrontMatter showing issue with windows newline

* fix issue with windows newline when using SplitFrontMatter

* Update modules/caddyhttp/templates/frontmatter.go

Co-authored-by: Francis Lavoie <lavofr@gmail.com>

* make it mere explicit what is trimmed from firstLine

* Update modules/caddyhttp/templates/frontmatter.go

Co-authored-by: Francis Lavoie <lavofr@gmail.com>
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
2020-05-18 13:01:04 -06:00
..
caddyfile.go Improve godocs all around 2019-12-23 12:45:35 -07:00
frontmatter.go templates: trim windows whitespace in SplitFrontMatter; fix #3386 (#3387) 2020-05-18 13:01:04 -06:00
templates.go docs: Improve template documentation slightly; use const, not literal 2020-04-24 21:05:09 -06:00
tplcontext_test.go templates: trim windows whitespace in SplitFrontMatter; fix #3386 (#3387) 2020-05-18 13:01:04 -06:00
tplcontext.go Minor comment fix 2020-04-27 14:49:27 -06:00