#1081: don't autogenerate code with trailing whitespace