diff options
Diffstat (limited to 'parser')
-rw-r--r-- | parser/frontmatter.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/parser/frontmatter.go b/parser/frontmatter.go index e7492745e..79701a0fc 100644 --- a/parser/frontmatter.go +++ b/parser/frontmatter.go @@ -46,7 +46,9 @@ func InterfaceToConfig(in interface{}, format metadecoders.Format, w io.Writer) return err case metadecoders.TOML: - return toml.NewEncoder(w).Encode(in) + enc := toml.NewEncoder(w) + enc.SetIndentTables(true) + return enc.Encode(in) case metadecoders.JSON: b, err := json.MarshalIndent(in, "", " ") if err != nil { |