mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-02 07:04:48 +08:00
feat: add --ini-preserve-quotes flag for INI round-trip quote preservation (#2728)
Add INIPreferences.PreserveSurroundedQuote option that wires through to go-ini/ini's LoadOptions.PreserveSurroundedQuote. When enabled, existing surrounding quotes on INI values are preserved during decode/encode round-trips. Fixes #2456 Co-authored-by: toller892 <toller892@gmail.com>
This commit is contained in:
+1
-1
@@ -90,7 +90,7 @@ var LuaFormat = &Format{"lua", []string{"l"},
|
||||
|
||||
var INIFormat = &Format{"ini", []string{"i"},
|
||||
func() Encoder { return NewINIEncoder() },
|
||||
func() Decoder { return NewINIDecoder() },
|
||||
func() Decoder { return NewINIDecoder(ConfiguredINIPreferences) },
|
||||
}
|
||||
|
||||
var Formats = []*Format{
|
||||
|
||||
Reference in New Issue
Block a user