Add a pretty printer that removes trailing whitespace from lines

This is to resolve issue #7