put newline at end of content saved to a file

This commit is contained in:
Luke Emmet 2020-08-27 07:54:47 +01:00
parent 262d024e28
commit 592b9621ca

View File

@ -115,7 +115,7 @@ func main() {
fmt.Print(text + "\n") //terminate with a new line
} else {
//save to the specified output
gmiBytes := []byte(text)
gmiBytes := []byte(text + "\n")
saveFile(gmiBytes, *output)
}
}