Quote:
Originally Posted by JollyRoger
I've got an epub file which seems to have every paragraph on a new page. I converted it to mobi in Calibre but it retained the same formatting.
|
It looks like this is the culprit:
Code:
<div class="mbppagebreak" id="calibre_pb_5"></div>
The original file/conversion might've been busted, and added those page breaks after every single paragraph/page.
What you'll want to do is merge all HTML files together, then manually split them where you want (before every chapter).
1. In Calibre's Editor:
Highlight multiple files, then Right-Click + "Merge Selected Text Files".
2. Press Ctrl+F and make sure Mode is set to "Regex".
3.
Search: <div class="mbppagebreak" id="calibre_pb_\d+"></div>
Replace: ***LEAVE COMPLETELY BLANK***
This will remove all the mbppagebreaks from your code.
4. Follow:
https://manual.calibre-ebook.com/edi...ing-html-files
to split each chapter into its own file.
5 (Optional). Rename all your files to human-readable names such as:
- Foreword.xhtml
- Introduction.xhtml
- Chapter01.xhtml
- Chapter99.xhtml