|
|
#1 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 507
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
Question about HTML-to-EPUB code
This isn't a conversion problem, per se; it's more of a confusion.
When an HTML file is converted to EPUB and chapter breaks are inserted before <h1> or <h2> tags ([Structure detection] options), at the end of each html "page" in the EPUB I'll see the following code: Code:
<div class="calibre2" id="calibre_pb_0"></div> This code is not in the original HTML file, the "id" is not referenced anywhere else in the EPUB file (as far as I can tell), and the css for "calibre2" is just "display: block". Can someone explain what this HTML code is doing, and what—if any—function it has for readability/epub validation/etc. after the converted file has been generated? |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,611
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That <div> will have been present in the HTML, calibre's HTML splitting code adds ids to all elements that have a page break applied for internal processing.
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| epub code snippets (html / css) | zelda_pinwheel | ePub | 197 | 05-20-2025 10:57 PM |
| Sigil+HTML question: How to show/visualize entities and code? | celiapgt | Sigil | 4 | 11-07-2024 11:46 PM |
| How to view the html source code of epub through calibre | qweqwe123456 | Editor | 14 | 04-06-2023 03:14 PM |
| Quick html code question... | pargoo | Sigil | 4 | 11-19-2013 04:05 PM |
| HTML code in epub book | Giselleco | Kobo Reader | 4 | 07-26-2011 02:33 PM |