Fix empty lines in output collapsing.