Skip to content

Fix column regression - #1387

Merged
karlkleinpaste merged 2 commits into
crosswire:masterfrom
LAfricain:FixColumnRegression
Aug 22, 2026
Merged

karlkleinpaste merged 2 commits into
crosswire:masterfrom
LAfricain:FixColumnRegression

Conversation

@LAfricain

Copy link
Copy Markdown
Contributor

Fix for #1385 regressions.
FIX for italics spilling over into the verse text - Multi-match version. Applies the font-style reset to all occurrences in the rendering block.

lafricain79 added 2 commits August 22, 2026 08:54
Two regressions reported after crosswire#1385 (Balance chapter HTML and
fix intro-material italics leaking into text):
1. Verse alignment anchors (chapter*1000+verse) no longer reliably
   top-align on navigation with whole-book rendering (e.g. Deu 24:17
   landing at page bottom instead of top).
2. Pre-verse heading placement broken relative to text and the
   end-of-chapter horizontal separator.

Both were reproducible specifically with multi-column display (4
columns). Methodically isolated by testing each crosswire#1385 change
individually (wk_html_sanitize(), the chapter-anchor auto-close, and
this div-balancing) against a pristine pre-crosswire#921 checkout: only the
introMaterial() div-balancing reproduced the regression once
isolated.

The balancing logic force-closed unclosed <div> tags (left open by
SWORD's OSIS filter, e.g. a <div type=subSection> whose closing tag
never appears in the fetched intro text) right before our own wrapper
close. Shifting block-level closing boundaries at that exact spot —
right where chapter headers sit — was enough to change where WebKit
decides to break columns and how it computes anchor-scroll position
in multi-column, whole-book rendering.

Reverted to the original single closing </div>. Italics leaking past
chapter intro material onto verse text (the original motivation for
this code) is addressed separately, at the verse-text level instead
of the block-structure level, in a follow-up commit.
…on. Applies the font-style reset to all occurrences in the rendering block.
@karlkleinpaste
karlkleinpaste merged commit a4e4ab1 into crosswire:master Aug 22, 2026
7 checks passed
karlkleinpaste added a commit that referenced this pull request Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants