fix bug affecting frontmatter-only files

Former-commit-id: 02e2bec326
This commit is contained in:
Henrique Dias 2017-02-04 11:25:22 +00:00
parent fee1047644
commit 651c0bc26c

View File

@ -49,6 +49,7 @@ func GetEditor(r *http.Request, i *file.Info) (*Editor, error) {
goto Error
}
i.Content = frontmatter.AppendRune(i.Content, e.FrontMatter.Rune)
hasRune = true
}
if e.Class == "frontmatter-only" && hasRune {