hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 05b76dcb6fb02fdaa7e8b99cd5cb123bdae8881e
parent 73cbefdbc8829d24c9da27d9b2001a6a7e2eb169
Author: Dato Simó <dato@net.com.org.es>
Date:   Mon, 12 May 2014 03:34:44 +0100

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.

Diffstat:
Mhugolib/page.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/hugolib/page.go b/hugolib/page.go
@@ -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