Move linebreak handling to templates, where it belongs