Would it be possible to preserve whitespace between sections?
For example, before the script touches an INI file, it could look like this:
[Category1]
Key1=Value1
Key2=Value2
[Category2]
Key1=Value1
Key2=Value2
[Category3]
Key1=Value1
Key2=Value2
[Category4]
Key1=Value1
Key2=Value2
After the script is done, all the white space is gone:
[Category1]
Key1=Value1
Key2=Value2
[Category2]
Key1=Value1
Key2=Value2
[Category3]
Key1=Value1
Key2=Value2
[Category4]
Key1=Value1
Key2=Value2
Makes readability more difficult after batch-editing a bunch of INIs.
Would it be possible to preserve whitespace between sections?
For example, before the script touches an INI file, it could look like this:
After the script is done, all the white space is gone:
Makes readability more difficult after batch-editing a bunch of INIs.