Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to tell crudini to insert a blank line between SECTIONS? #110

Open
yanshein opened this issue Nov 29, 2024 · 3 comments
Open

Comments

@yanshein
Copy link

I would like to have blank line in between SECTIONS.

[My Section1]
Sect1Var1=Sect1Var1Value
Sect1Var2=Sect1Var2Value
Sect1Var3=Sect1Var3Value

[My Section2]
Sect2Var1=Sect2Var1Value
Sect2Var2=Sect2Var2Value
Sect2Var3=Sect2Var3Value

[My Section3]
Sect2Var1=Sect2Var1Value
Sect2Var2=Sect2Var2Value
Sect2Var3=Sect2Var3Value

Right now, I am seeing

[My Section1]
Sect1Var1=Sect1Var1Value
Sect1Var2=Sect1Var2Value
Sect1Var3=Sect1Var3Value
[My Section2]
Sect2Var1=Sect2Var1Value
Sect2Var2=Sect2Var2Value
Sect2Var3=Sect2Var3Value
[My Section3]
Sect2Var1=Sect2Var1Value
Sect2Var2=Sect2Var2Value
Sect2Var3=Sect2Var3Value
@pixelb
Copy link
Owner

pixelb commented Nov 30, 2024

Do you mean crudini is creating ini files like that (it shouldn't), or that you would like to adjust an existing ini file to add spacing between sections? If it is the latter then we have new --ini-options=tidy functionality in trunk that could be adjusted to add spacing (currently it just normalizes many blank lines to a single blank line)

@yanshein
Copy link
Author

Thank you @pixelb
May I know when 0.9.6 is coming out with that --ini-options=tidy functionality?

@pixelb
Copy link
Owner

pixelb commented Nov 30, 2024

It will be about 1 week.
So you want to auto space an existing ini file, to ensure an empty line between sections.

@pixelb pixelb reopened this Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants