-
Notifications
You must be signed in to change notification settings - Fork 241
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
Proposal: Allow supression of empty lines before Section #121
Comments
I don't really understand the issue. You mean that blank lines before a section confuses an INI reader? Which reader, do you have an example? |
I have a Blackbox-Software which will accept an INI file in a specific location. Whatever that parser inside the (proprietary) software is - it will stop processing files upon the first empty line. But if I just load and write a file without modifications, the ini-parser (yours), which does a pretty good job, will not result in the same file, since \r\n will be added before Sections (or probably at the end of sections). |
I'm planning a rewrite of the parser so it is easy to tackle this kind of things, and more (comments in the same line) but it will take a little bit of time |
Nice 👍 |
It would also be nice to be able to disable the new line before comments on key-value pairs as well.
|
Allow the programmer to set something like "NewLineBeforeNextSection" in the Parser.Configuration.
Some INI Readers don't like the empty lines there
The text was updated successfully, but these errors were encountered: