When adding a new section to a file that already ends in blank line, another blank line is added before the section. From what I understand, this is a known effect, which is mentioned in a comment in Crudini.set_name_value and caused by python-iniparse.
If it should not be possible to avoid that effect, may be crudini could offer a command to run the function tidy from iniparse's utils.py to clean up the file.
When adding a new section to a file that already ends in blank line, another blank line is added before the section. From what I understand, this is a known effect, which is mentioned in a comment in Crudini.set_name_value and caused by python-iniparse.
If it should not be possible to avoid that effect, may be crudini could offer a command to run the function tidy from iniparse's utils.py to clean up the file.