Allow for new lines in custom SQL snippets. Closes #407.