Fixing broken emphasis matching where it was replacing all spaces, not just those in emphasised tags