get rid of blank lines in snippets