trim trailing whitespace in docs page