Remove empty lines from snippets