Snippet content stripped before insertion

Since it's generally considered good practice to leave a trailing
EOF in text files, we need to strip that off before inserting snippets
or inline snippets will always end in a paragraph break.

Since the snippet tag will already be surrounded by the appropriate
whitespace, we should just strip all leading / trailing whitespace.