if the previous tag is a self close tag like <br /> it fails to close following non-closed tag