Trim lines.

Textpack specification doesn't require spaces on empty
lines.

Someone's editor is going to do the trimming anyways
eventually, so better get it over now.