Trim whitespace on blank lines; #983