fix: Erroneous navigation with long filenames in footnote links (#1723)

This commit is contained in:
jpirnay
2026-04-23 09:39:58 +02:00
parent 0d68162a07
commit 700d7b442b
4 changed files with 16 additions and 14 deletions
@@ -113,9 +113,8 @@ class ChapterHtmlSlimParser {
// Footnote link tracking
bool insideFootnoteLink = false;
int footnoteLinkDepth = -1;
char currentFootnoteLinkText[24] = {};
FootnoteEntry currentFootnote = {};
int currentFootnoteLinkTextLen = 0;
char currentFootnoteLinkHref[64] = {};
std::vector<std::pair<int, FootnoteEntry>> pendingFootnotes; // <wordIndex, entry>
int wordsExtractedInBlock = 0;