sigmavirus24/Todo.txt-python — Issue #7: Append command deletes lines, doesn't append to them 
Author: jvstein
Created: 2011-12-11 01:41:24+00:00
State: open

Commands to repro the issue.

$ ./todo.py a "foo"
TODO: 'foo' added on line 1.
$ ./todo.py a "bar"
TODO: 'bar' added on line 2.
$ cat ~/.todo/todo.txt
foo
bar
$ ./todo.py append 2 baz
TODO: Item 2 changed from 'bar' to 'bar
baz'.
$ cat ~/.todo/todo.txt
foo
$ ./todo.py append 1 baz
TODO: Item 1 changed from 'foo' to 'foo
baz'.
$ cat ~/.todo/todo.txt
$

At this point the todo.txt file is empty. Expected results are below:

$ cat ~/.todo/todo.txt
foo baz
bar baz
$