remove trailing newlines in org snippets