Fix #205: stop gutter drift from phantom newline rows #215

Merged
fen merged 1 commits from fix-205 into dev 2026-09-10 18:15:03 +00:00
1 Commits
Author SHA1 Message Date
fen 5034f156ee Fix #205: strip whitespace-only text nodes between codeline blocks
CI / docker (pull_request) Skipped
CI / test (pull_request) Successful in 43s
paste-lines.js rebuilt the codebody with innerHTML but relied on the
server-side '\n' delimiters disappearing between the per-line blocks.
Under white-space: pre any whitespace-only text node that survives
(cached HTML, template drift) renders as a phantom row and drifts the
gutter numbers off their lines. splitLines() now strips whitespace-only
text nodes after rebuilding, keeping renumber() geometry intact.
2026-09-10 13:12:12 -05:00