When a large paragraph is split across blocks, don't treat the continuation as a new paragraph

This commit is contained in:
spfenwick
2026-05-02 16:07:27 +12:00
parent 5928f32364
commit 40c3ecbada
3 changed files with 19 additions and 9 deletions
+7 -3
View File
@@ -215,9 +215,13 @@ void ParsedText::layoutAndExtractLines(
}
// Apply fixed transforms before any per-line layout work.
applyParagraphIndent();
if (bionicReadingEnabled) {
applyBionicReadingTransform();
// Skip on continuation flushes: the words are mid-paragraph and have
// already been transformed by the initial layoutAndExtractLines call.
if (!isContinuation_) {
applyParagraphIndent();
if (bionicReadingEnabled) {
applyBionicReadingTransform();
}
}
// Ensure SD card font glyph metrics are loaded before measuring word widths.