Fix unwanted nbsp payload of empty paragraphs

This commit is contained in:
jpirnay
2026-03-30 14:25:04 +02:00
parent b1c3b9d768
commit 2111bc2fdb
2 changed files with 55 additions and 3 deletions
@@ -30,6 +30,7 @@ class ChapterHtmlSlimParser {
std::function<void(int)> progressFn; // Progress callback (0-100)
int depth = 0;
int skipUntilDepth = INT_MAX;
int skipTextUntilDepth = INT_MAX; // skip character data inside synthetic zero-height spacer <p>
int boldUntilDepth = INT_MAX;
int italicUntilDepth = INT_MAX;
int underlineUntilDepth = INT_MAX;