trailing spaces were being converted to &nbsp; when pasting, causing problems with word breaks