Strip carriage returns from user input

This commit is contained in:
2024-03-08 12:48:19 -05:00
parent 82b4fbee64
commit edf1a4cd9a
5 changed files with 28 additions and 4 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ func editNote(baseNote []string) ([]string, bool) {
note = append(note, scanner.Text())
}
// close the tempFile
// close tempFile
tempFile.Close()
// return the edited note if it is different from baseNote