View Single Post
Old 01-17-2012, 11:51 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,127
Karma: 60406498
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Paxman53 View Post
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
I don't know why it is there other than for an ID marker)

Code:
 <h2 class="chapterstyle">Chapter N&nbsp; <br /><span class="capterTitlestyle">Chapter Title</h2>
Now the title also appears in the TOC on the same line(you need the trailing space or something to prevent run together)
theducks is offline   Reply With Quote