Amended todo function to ensure there's a newline after the next item
Added double quotes to prevent globbing/word splitting. Removed newline as realised it wasn't the issue