pelletier / go-toml

Go library for the TOML file format
https://github.com/pelletier/go-toml
Other
1.67k stars 208 forks source link

Encode: fix indentation when marshalling slices as array tables #944

Closed daniel-weisse closed 2 months ago

daniel-weisse commented 2 months ago

Arrays of custom types are not indented due to a missing call to enc.indent. This PR fixes the issue by adding the missing call when enc.indentTables == true


Fixes https://github.com/pelletier/go-toml/issues/943

pelletier commented 2 months ago

Thank you very much for the patch!

pelletier commented 2 months ago

Released v2.2.1 with this fix.