Commit b85075d4 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Process one large string or a list of strings per todo.

parent 5a99477f
......@@ -27,7 +27,10 @@ class TodoFile(object):
todofile = open(self.path, 'w')
for todo in p_todos:
todofile.write("%s" % todo)
if p_todos is list:
for todo in p_todos:
todofile.write(str(todo))
else:
todofile.write(p_todos)
todofile.close()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment