View Single Post
Old 12-10-2023, 02:02 PM   #190
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,367
Karma: 171313058
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by slowsmile View Post
@DNSB,


Well, for goodness sake, if you actually admit that styling a blank space using <span> tags is indeed a useless and pointless thing to do then why on earth are YOU doing that in your HTML code in Sigil and then insisting that it's a plugin problem?
It may be useless and pointless but the client's software is doing it. It is valid code that does not trigger epubcheck to throw any errors. Whereas your plugin converts word<i> </i>newword to wordnewword. Substitute any tag with or without a class/style/id/whatever. I noticed the issue when a final spellcheck barfed on the document.

I see this when I run CustomCleanerPlus on an epub all by itself after clicking clear all so no options are selected.

Code:
<p>This<span class="italic" id="kofu0"> </span>is<span class="italic" id="kofu1"> </span>a<span class="italic" id="kofu2"> </span>test<span class="italic" id="kofu3"> </span>for</p>
Code:
<p>This<span class="italic" id="kofu0"/>is<span class="italic" id="kofu1"/>a<span class="italic" id="kofu2"/>test<span class="italic" id="kofu3"/>for</p>
Preview before:
This is a test for

Preview after:
Thisisatestfor


I do have a search that looks for tagged space(s) and removes the tags but your code removes the space but not the tags which is wrong in so many ways.
DNSB is offline   Reply With Quote