View Single Post
Old 08-08-2014, 04:20 PM   #6
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
i know from bitter experience that i must not zap these
Code:
 <link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css" />
  <link href="../Styles/page_styles.css" rel="stylesheet" type="text/css" />
but if we talk about novels, not texts with footnotes, then I struggle to name any useful use of <a href

where I have gone previously wrong is to tackle the header cleanup in chunks, so I've tried to zap the href bit only, with a view to then losing the <a> tags but preserving what is inside of them. But that takes out the vital links code.

Getting the <a href... and the closing </a> tag out of retail code like this example ( that I quoted in sigil forum) is no fun!
Code:
<h2 class="chp"><a href="../Text/wizardandglass_con01.html#TOCC-6"><span class="chapnum"><b>CHAPTER I</b></span><br />
    B<span class="largecap">ENEATH THE</span> D<span class="largecap">EMON</span> M<span class="largecap">OON</span> (I)</a></h2>
my 1st get out of jail card is the discard option in sigil - exit without saving.
my 2nd is to go to my backup copy of calibre library, restore the backup of that book into my main library, & start over
I needed both cards, more than once, when tweaking the above code!

->eschwartz: I'll give your code a try-out on the next nasty I come across- thanks

Last edited by cybmole; 08-08-2014 at 04:33 PM.
cybmole is offline   Reply With Quote