commands: Remove extraneous newline from result of convert toTOML - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit b002d47953e341b6c84e39001d312bd95a3b5078
DIR parent e3f31352d4ae650d9ec177bedaf0d478a7374cf8
HTML Author: Joe Mooring <joe.mooring@veriphor.com>
Date: Mon, 3 Oct 2022 17:25:38 -0700
commands: Remove extraneous newline from result of convert toTOML
Fixes #10351
Diffstat:
M parser/frontmatter.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/parser/frontmatter.go b/parser/frontmatter.go
@@ -109,7 +109,7 @@ func InterfaceToFrontMatter(in any, format metadecoders.Format, w io.Writer) err
return err
}
- _, err = w.Write([]byte("\n" + tomlDelimLf))
+ _, err = w.Write([]byte(tomlDelimLf))
return err
default: