These sorts of issues is why many people use Calibre's editor or Sigil to create epubs. They handle much of this sort of things themselves.
You could try downloading either and seeing what error message you get or whether Sigil corrects the error if you allow it to when you open the file.
With Sigil the file may not remain exactly the same, but it will display the same way you want it to.
|