Remove empty lines from code snippets