remove trailing whitespace in generated snippets

removes the trailing whitespace for the "empty" comment lines in the generated yardoc