Trim whitespace before text wrapping when serializing to HTML...

To remove leading and trailing whitespace not handled by reflow().