mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-18 00:45:47 +00:00
fix blank space -> begin of files
This commit is contained in:
parent
d6472c68f1
commit
c274391865
1 changed files with 1 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue