Skip to content

🐞 Fix double-click copying across indented paragraph boundaries - #239

Merged
lindsey-pony[bot] merged 1 commit into
mainfrom
cherry-punch
Nov 29, 2026
Merged

lindsey-pony[bot] merged 1 commit into
mainfrom
cherry-punch

Conversation

@kefania-pony

@kefania-pony kefania-pony Bot commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

Double-clicking either of the two closely spaced paragraphs below the transaction diagram on page 2 of the Bitcoin whitepaper could select and copy both paragraphs. Their nearly full-width lines and consistent vertical spacing leave a modest first-line indent as the principal visual cue separating them.

  • Refine the visual paragraph detection introduced in 🔩 Enable double-click paragraph selection and copying #215 by examining the line after a potential paragraph start. A sentence-ending line followed by a modest indent and a return to the original margin now marks a paragraph boundary in both directions of selection. Existing semantic-tag handling and other boundary checks remain unchanged.
  • Add regression tests for the whitepaper's layout (26px indentation, 18px text height, and 21px line spacing) and for preserving hanging indents whose continuation lines remain indented.

The originating development session reports successful verification in Brave with Markdown copying enabled and disabled, as well as 400 passing tests.

🔗 Source

Online · Local · Desktop

@lindsey-pony
lindsey-pony Bot merged commit 2657eca into main Nov 29, 2026
14 checks passed
@lindsey-pony
lindsey-pony Bot deleted the cherry-punch branch November 29, 2026 21:07
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.

1 participant