Replace multiple new lines with two new lines.

Replace three or more new lines with just two new lines in generated
source.

Closes #261.