cosmit: skip trailing whitespaces