|
|
#1 |
|
Junior Member
![]() Posts: 8
Karma: 10
Join Date: Oct 2026
Device: Foliate/Linux
|
Index Creator bug maybe?
This is processed correctly:
<span class="sigil_index_marker" title="Now we're equally"> </span> This is ignored: <span class="sigil_index_marker" title="Now we're equally"></span> This is also ignored: <span class="sigil_index_marker" title="Now we're equally"><img src="now.jpg"/></span> |
|
|
|
|
|
#2 |
|
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,897
Karma: 34252744
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Suggest you always put code in code tags, the forum software has a habit of injecting spurious spaces,
Code:
<span class="sigil_index_marker" title="Now we're equally"> </span> BBCodes supported on MR ==>> https://www.mobileread.com/forums/misc.php?do=bbcode BR |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,163
Karma: 7640000
Join Date: Nov 2009
Device: many
|
The one that is processed correctly has a text node to process (even if it is just a single space), the second and third example have no text node to process. You need a text node so that the QRegularExpression has something to attempt to match.
Not a bug, but a requirement for a text node to process an index entry, and not an img tag or other non-text node. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Strange bug (tuple index out of range) | un_pogaz | Calibre | 4 | 08-15-2021 10:17 PM |
| Bug in index creation with Sigil | Patrick V | Sigil | 6 | 02-11-2020 10:12 AM |
| [BUG] Index lists all words starting with string | 1v4n0 | Sigil | 9 | 05-17-2018 02:28 PM |
| creator is as mysterious as sublime creator | bassetti | Introduce Yourself | 2 | 08-24-2008 07:49 AM |
| Manga creator from JPEGs? (BBeb creator) | jessesn | Sony Reader | 3 | 10-03-2006 01:06 AM |