lemnos / tt

A terminal based typing test.
MIT License
714 stars 48 forks source link

[Bug]: Doesn't strip newlines from typos list #53

Open mecaneer23 opened 1 month ago

mecaneer23 commented 1 month ago

If typo in word that has newline attached, the newline isn't stripped (untested if leading or trailing newline) before displaying in typos list when tt ends. Fix can be implemented in for loop in func showReport(scr tcell.Screen, cpm, wpm int, accuracy float64, attribution string, mistakes []mistake) in tt.go. (Currently here).