Fix <pre> treatment

This commit is contained in:
jpirnay
2026-03-28 17:44:10 +01:00
parent 7f6933ab22
commit be430c781e
2 changed files with 15 additions and 4 deletions
@@ -32,7 +32,7 @@ class ChapterHtmlSlimParser {
int boldUntilDepth = INT_MAX;
int italicUntilDepth = INT_MAX;
int underlineUntilDepth = INT_MAX;
int preUntilDepth = INT_MAX;
int preUntilDepth = INT_MAX; // set when inside a <pre> element; enables \n → line-break handling
// buffer for building up words from characters, will auto break if longer than this
// leave one char at end for null pointer
char partWordBuffer[MAX_WORD_SIZE + 1] = {};