|
From: Frederik E. <fre...@we...> - 2007-12-17 22:59:21
|
Hello! I just discovered ConfigObj, and I really like it. But I have one problem: ConfigObj doesn't put a newline at the end of the files it writes. So the config file ends immediately after the value of the last option, with no trailing newline. Now I want to edit configuration files for one specific application with ConfigObj. And this application crashes with this behaviour while reading the config file. As far as I know, the POSIX standard requires files to end with newlines, so it seems legitimate for applications to expect newlines at the end of a file. Is this behaviour intended? And is there an easy way to add a final newline to the file? Thanks, Frederik |