01-17-2012, 11:24 AM | #1 |
Connoisseur
Posts: 55
Karma: 10
Join Date: Jan 2011
Device: 7" Tablet - Aldiko Reader Premium
|
Unwanted <Div> at end of file
Hi,
Can anyone help. I am converting existing Epub files to my liking i.e. setting up chapter headings etc. I use Sigil to tidy up the file and set up h2 (title) h3 (Chapter heading) & h4 (Chapter title). I then use Calibre to convert the file splitting on h3 - which is fine so far. The problem I have is after conversion at the end of each file I now have: e.g. <div class="calibre7" id="calibre_pb_2"></div> progressing by 2 each file. <div class="calibre7" id="calibre_pb_4"></div> This wasn't there before conversion. It doesn't appear to do anything and if removed has no effect, that I can see, on the file. Can anyone explain why Calibre puts it in, if it's needed and if not how to prevent it? Failing that can anyone show me how to block remove all the codes using regex as I have tried and have no idea what to do. Any help would be greatly appreciated |
01-17-2012, 11:51 AM | #2 | |
Well trained by Cats
Posts: 29,799
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Code:
<h2 class="chapterstyle">Chapter N <br /><span class="capterTitlestyle">Chapter Title</h2> |
|
Advert | |
|
01-17-2012, 12:22 PM | #3 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
pb could stand for page break - check the css for calibre7 in this example there might be something in there that makes sure the content that follows will start on a new page... might make a difference for some readers
it could also be simply a marker for calibre itself so it knows there's supposed to be a page break there when you convert it to other formats. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
epubcheck doesn't like <div>s | marciarampart | ePub | 8 | 11-27-2011 03:13 AM |
duplicate div id's | thiefwriter | ePub | 6 | 09-17-2011 11:00 AM |
Center a div | marcelo2605 | ePub | 4 | 05-13-2011 07:39 AM |
Calibre extra unwanted carriage returns in PCB file conversion | gragradownunder | Conversion | 0 | 05-12-2011 06:57 AM |
LRF conversion with unwanted page number with file name and dates | confusednow | Calibre | 3 | 09-20-2010 10:21 PM |