From ade37da060d277bcbe87de8cf9386b3ad181c89c Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Fri, 9 Oct 2015 20:47:04 +0100 Subject: [PATCH] fix mini bug --- editor/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/post.go b/editor/post.go index e2ce9ec1..936848ab 100644 --- a/editor/post.go +++ b/editor/post.go @@ -109,7 +109,7 @@ func parseFrontMatterOnlyFile(rawFile map[string]interface{}, filename string) ( func parseCompleteFile(r *http.Request, c *config.Config, rawFile map[string]interface{}, filename string) ([]byte, int, error) { // The main content of the file mainContent := rawFile["content"].(string) - mainContent = "\n\n" + strings.TrimSpace(mainContent) + mainContent = "\n\n" + strings.TrimSpace(mainContent) + "\n" // Removes the main content from the rest of the frontmatter delete(rawFile, "content")