Remove newlines from snippets