View Single Post
Old 12-05-2023, 09:31 PM   #163
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,204
Karma: 169936284
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
There's just no way that my plugin can add <i></i> tags to specific text. After all, why would I add such a feature to my plugin when you can already add and remove <i></i> tags in Sigil without using any plugin?
The problem is that the <i> </i> is converted to an <i></i>. Soyougettoreadthesentencewithnospaces. This does not seem to happen if other text is inside the tags only with spaces.


Code:
<body>
  <p>This<i> </i>is<i> </i>an<i> </i>italic<i> </i>sentence.</p>
</body>
After running CustomCleanerPlus with no options selected:
Code:
<body>
  <p>This<i></i>is<i></i>an<i></i>italic<i></i>sentence.</p>
</body>
DNSB is offline   Reply With Quote