fix blank space -> begin of files

This commit is contained in:
Henrique Dias 2016-02-18 18:18:50 +00:00
parent d6472c68f1
commit c274391865
1 changed files with 1 additions and 1 deletions

View File

@ -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":