From c27439186535f4c2b426baa9eefd22fb65f98892 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 18 Feb 2016 18:18:50 +0000 Subject: [PATCH] fix blank space -> begin of files --- editor/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/post.go b/editor/post.go index 3532e711..6e4171bc 100644 --- a/editor/post.go +++ b/editor/post.go @@ -42,7 +42,7 @@ func POST(w http.ResponseWriter, r *http.Request, c *config.Config, filename str case "content-only": // The main content of the file mainContent := rawFile["content"].(string) - mainContent = "\n\n" + strings.TrimSpace(mainContent) + mainContent = strings.TrimSpace(mainContent) file = []byte(mainContent) case "complete":