Handle whitespace before closing `>`

Fixes #267.
Merge pull request #301 from Koronen/wbr-whitespace

Handle whitespace before closing `>`