snippets: handle new lines a bit better.