fix format error by adding '\n' before HTML elements.