I would recommend using Calibre to create an ePub. Then explode the ePub into its corresponding HTML and edit the HTML to fix all the formatting problems (random line breaks and no paragraphs). Then feed the HTML back into Calibre to create a new ePub.
|