Found the trick for rendering linebreaks: use the linebreaksbr template tag.