Add a blank line after the front matter when writing back a page.

Could also be done in parser.InterfaceToFrontMatter(), but logically the
extra blank line belongs to the page, not the front matter itself.
This commit is contained in:
Dato Simó 2014-05-12 03:34:44 +01:00 committed by spf13
parent 73cbefdbc8
commit 05b76dcb6f

View file

@ -570,6 +570,7 @@ func (page *Page) SetSourceMetaData(in interface{}, mark rune) (err error) {
if err != nil {
return err
}
by = append(by, '\n')
page.sourceFrontmatter = by