Simplify zero run handling in put_line().