configfile: add newline at the end

For convenience for the user, add a newline at the end.
Reported as #51 .
This commit is contained in:
Jakob Unterwurzacher 2016-10-21 08:43:39 +02:00
parent 86afaee200
commit a74a7e7f54

View File

@ -193,6 +193,8 @@ func (cf *ConfFile) WriteFile() error {
if err != nil {
return err
}
// For convenience for the user, add a newline at the end.
js = append(js, '\n')
_, err = fd.Write(js)
if err != nil {
return err