Add newline to end of settings.json

Fixes #296
This commit is contained in:
Zachary Yedidia
2016-09-04 10:10:57 -04:00
parent c38044106c
commit 5b7fa01825

View File

@@ -126,7 +126,7 @@ func WriteSettings(filename string) error {
}
txt, _ := json5.MarshalIndent(parsed, "", " ")
err = ioutil.WriteFile(filename, txt, 0644)
err = ioutil.WriteFile(filename, append(txt, '\n'), 0644)
}
return err
}