fixing linebreak issues with html snippets