Trim trailing whitespace from RST files

This change only removes trailing spaces from the ends of lines.