View Single Post
Old 06-12-2018, 01:52 AM   #10
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: 46,355
Karma: 169098492
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Interesting. I added a span with a id to a test epub and then converted it from epub to epub. Not only was a span with an id not removed, it had a class added. My theory about the spans being removed seems to have been shot down. Calibre 3.25, BTW.

Original epub:
Code:
<body class="epub">
  <p class="paranon"><span id="tarfu_1.3">This is a sample ebook with a few lines of text though it's hard to say what is actually a line of text when font size, screen width, margin size are variables beyond the control of the author. Of course, we could go to absolute measurements if we really want odd effects. EOT</span></p>
</body>
Converted epub:
Code:
  <body class="epub">
  <p class="paranon"><span id="tarfu_1.3" class="calibre">This is a sample ebook with a few lines of text though it's hard to say what is actually a line of text when font size, screen width, margin size are variables beyond the control of the author. Of course, we could go to absolute measurements if we really want odd effects. EOT</span></p>
</body>
The added class:
Code:
.calibre {
    line-height: 1.2
    }
DNSB is offline   Reply With Quote