diff options
author | Jakob Unterwurzacher | 2016-10-21 08:43:39 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2016-10-21 08:43:39 +0200 |
commit | a74a7e7f547e021abc9b9fd956f3cae54d740dd3 (patch) | |
tree | b803c5811e95697624b289b21e73eae7ff1fee20 /internal/configfile | |
parent | 86afaee20061909178fc3e6e4014097b1f5bb6e6 (diff) |
configfile: add newline at the end
For convenience for the user, add a newline at the end.
Reported as #51 .
Diffstat (limited to 'internal/configfile')
-rw-r--r-- | internal/configfile/config_file.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/configfile/config_file.go b/internal/configfile/config_file.go index 97a1f3a..603f276 100644 --- a/internal/configfile/config_file.go +++ b/internal/configfile/config_file.go @@ -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 |