Remove unnecessary blank lines from output