ini icon indicating copy to clipboard operation
ini copied to clipboard

SaveTo without Indentation

Open jingc1413 opened this issue 2 years ago • 1 comments

Version

1.6.7

Describe the bug

It should be possible to write the values without Indentation in SaveTo. Perhaps with an optional parameter. [section] key = value keylong = value

instead of

[section] key ________ = value keylong ____ = value

_ stands for spaces

by this tip https://github.com/go-ini/ini#save-your-configuration i can't find any help?

To reproduce

11

Expected behavior

11

Additional context

11

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

jingc1413 avatar Aug 10 '23 06:08 jingc1413

ini.PrettyFormat = false
... SaveTo ...

lknite avatar Jun 11 '25 17:06 lknite