fix trailing spaces on empty lines