Version 0.4.0RC-1 is known to have issues that corrupt the content.opf file under certain circumstances (albeit not, on the face of it, your circumstances).
In any event, more detail would be helpful. Could you post both epubs -- the one that works and the one that doesn't for us to examine? It could be a small, made-up example, so long as it demonstrates the defect.
|