Delete trailing newline in snippets.