View Single Post
Old 06-12-2018, 01:25 AM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 47,562
Karma: 171913088
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by spiralpath View Post
Thank you very much, kovidgoyal,

I am not attached to the css classes I name, however I am very partial to the markup that is being removed completely. I am using the following markup to identify specific sub-headings in the text that are linked to the table of contents I created in TableOfContents.html, e.g.:

excerpt from TableOfContents.html:

<p class="toc-level1"><a href="chapter-1.html#chap1-3">Checking Goals at the Door</a></p>

excerpt from chapter-1.html:

<p class="subhead"><span id="chap1-3">Checking Goals at the Door</span></p>

Oddly, the Calibri conversion process does not change the subhead class but it removes the span tags completely. Hence, my strategy to link my table of contents via HTML is foiled.

excerpt from chapter1.html, post-conversion:

<p class="subhead">Checking Goals at the Door</p>
A quick look at your code suggests a possibility that your spans do not include a class so they are being removed as do nothing code. My personal feeling is that should only happen to <span> tags that do not include other information.

As suggested, using <p class="subhead" id="chap1-3"> would be cleaner. If you really want to use the spans, something like <span class="dummy" id="chap1-3"> would survive the conversion process.

Last edited by DNSB; 06-12-2018 at 01:27 AM.
DNSB is offline   Reply With Quote