Convert ... to &hellip;

Also strip trailing whitespace, as this doesn't appear in the book.