Fix "hugo new" EOF error with an archetype file without the final EOL
authorTatsushi Demachi <tdemachi@gmail.com>
Sat, 10 Jan 2015 07:15:51 +0000 (16:15 +0900)
committerbep <bjorn.erik.pedersen@gmail.com>
Sat, 10 Jan 2015 18:48:35 +0000 (19:48 +0100)
commit78e9229c52dfdaf335673b171a3d66fc1ace8d9e
tree673c6fc37405f607b636536a1733a0193ff532a7
parentb6ab66189341907b5d8daaffdb73f1151fa7a467
Fix "hugo new" EOF error with an archetype file without the final EOL

This rewrites `extractFrontMatterDelims` function to make it work with
an archetype file without the final EOL and adds more detailed error
messages and comments.

It also removes `matches` and `matches_quick` functions which aren't
called anywhere.
hugolib/page_test.go
parser/page.go
parser/parse_frontmatter_test.go