fix bug in list.html:

when the template expand {{todo}} in list.html, it'll crush if there's
'\n' in {{todo}}.