Manuel-Kehl / Go-For-It

A stylish to-do list with built-in productivity timer. NOTE: all contributions should go to Jonathan Moerman's fork because this is where active development is taking place: https://github.com/JMoerman/Go-For-It
http://manuel-kehl.de/projects/go-for-it/
GNU General Public License v3.0
516 stars 51 forks source link

Problem with Unix and Windows line breaks #77

Closed Manuel-Kehl closed 8 years ago

Manuel-Kehl commented 8 years ago

A comment on the project's website describes the following bug:

There is one small issue I found: I am using a shared file via dropbox between Windows, Linux and Android. The problem is the CTRL-Ms in the carriage return code from Windows which seem to disturb the layout. Testcase: edit on linux; close GoForIt; edit on windows; close GoForIt; next time I open GoForIt anywhere the file has CTRL-Ms at the end of each task which are then shown as empty lines. Fix: either ignore the CTRL-Ms when displaying or write to file in Linux/Unix format and not Windows.

JMoerman commented 8 years ago

Just fixed this, using unix line ending on Windows wouldn't be a good fix because a user could still use another windows todo.txt application. Go for it would also parse empty lines as tasks with empty names, I think it's better to ignore those lines.

Manuel-Kehl commented 8 years ago

Thanks @JMoerman for your support :+1: