Removes new lines in code snippets