AnthonyDiGirolamo / todotxt-machine

an interactive terminal based todo.txt file editor with an interface similar to mutt
https://pypi.python.org/pypi/todotxt-machine/
GNU General Public License v3.0
244 stars 37 forks source link

Ensure save() ends file with final newline (Issue #20) #21

Closed kmac closed 9 years ago

kmac commented 9 years ago

A simple change to the save() method to ensure the final newline is written to file. The existing join approach leaves the final line without a newline, which is problematic when working with todo.sh, and possibly other scripts.

Just started using this - it looks great btw. Thanks!

AnthonyDiGirolamo commented 9 years ago

Thanks for the patch! That solves the issue nicely. Will merge and push a new version to pypi