View Single Post
Old 05-24-2012, 03:19 PM   #28
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,114
Karma: 148951761
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by kiwidude View Post
If the chapter heading text has *no style* associated with it, the book view trick works.

However ever since 0.4.something, this feature is "broken" in my opinion if the text you are already highlight has a style. I am sure it *used* to be the case that applying a heading style using book view would result in whatever paragraph tags the text had being replaced with a plain <h3> type of tag. Now however it gets it wrong and just replaces the p with h3.

So if your text looks like this:
<p class="text">CHAPTER ONE</p>
You will end up with:
<h3 class="text">CHAPTER ONE</p>

Which is *rarely* (i.e. never) what I want. So you end up having to do a regex afterwards, which you may as well have just done in the first place, much faster.
My copy of Sigil also replaces the </p> with </h2> when I use the second header style. I have no idea why yours leaves the </p> alone.
JSWolf is offline   Reply With Quote