Docx reader: Fix spacing issue.

Previously spaces at the beginning of Emph/Strong/etc were kept
inside. This makes sure they are moved out.
Change head/tail to pattern guards.
Merge pull request #1510 from jkr/spacefix

Docx reader: Fix spacing issue.