Use XHTML compliant breaks and remove unneeded spaces

Translate extension checks for these.