Remove extra libraries, add linebreaks to template render.