aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser
diff options
context:
space:
mode:
authorJoe Mooring <[email protected]>2022-10-03 17:25:38 -0700
committerBjørn Erik Pedersen <[email protected]>2022-10-04 09:28:34 +0200
commitb002d47953e341b6c84e39001d312bd95a3b5078 (patch)
tree2a9526f74479c228e3dc8a6adeaa887e22b7bc1d /parser
parente3f31352d4ae650d9ec177bedaf0d478a7374cf8 (diff)
downloadhugo-b002d47953e341b6c84e39001d312bd95a3b5078.tar.gz
hugo-b002d47953e341b6c84e39001d312bd95a3b5078.zip
commands: Remove extraneous newline from result of convert toTOML
Fixes #10351
Diffstat (limited to 'parser')
-rw-r--r--parser/frontmatter.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/parser/frontmatter.go b/parser/frontmatter.go
index 150ce038f..ced8b84fc 100644
--- 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: