Library: Removing trailing whitespace and double blank lines.