Skip to content

Drop whitespace-padded terminal border lines - #8

Merged
ragb merged 1 commit into
ragb:masterfrom
serrebidev:fix/decorative-terminal-whitespace
Oct 6, 2026
Merged

ragb merged 1 commit into
ragb:masterfrom
serrebidev:fix/decorative-terminal-whitespace

Conversation

@serrebidev

Copy link
Copy Markdown

Summary

Treat whitespace between box-drawing characters as decorative when cleaning Windows Terminal text.

The existing predicate strips leading and trailing whitespace, then checks every remaining character against the Unicode Box Drawing block. A row such as │ │ therefore survives because its internal spaces fail the range check, even though the row contains no content. Ignoring whitespace during that check makes the implementation match its documented intent.

Verification

  • All repository-enforced hooks pass.
  • The add-on builds successfully with SCons.
  • A focused regression test confirms that blank rows, border-only rows, and whitespace-padded border rows are removed while │ content │ and ordinary punctuation are preserved.
  • Live NVDA testing against the active terminal confirmed the previously surviving │ │ row.

This follows up the terminal cleanup ported in #5.

serrebidev pushed a commit to serrebidev/virtualReview that referenced this pull request Sep 23, 2026
- Restore Virtual Review in Windows Terminal tabs and panes by capturing
  straight from the focused TermControl (fix-terminal-review)
- Add a Virtual Revision settings panel with a toggle for the UWP review
  alert beeps (settings-beep-toggle)
- Strip terminal padding and decorative box-drawing borders from reviewed
  text, treating whitespace inside border rows as decorative (clean-terminal-text,
  ragb#8)
- Add NVDA+Alt+W as the documented shortcut while keeping NVDA+Control+W,
  avoiding the NVDA 2026.2 magnifier conflict (ragb#9)
- Update all localized readmes with the new shortcut
- Bump version to 2026.09.23
@ragb ragb closed this Oct 6, 2026
@ragb ragb reopened this Oct 6, 2026
@ragb
ragb merged commit 66f14b3 into ragb:master Oct 6, 2026
2 checks passed
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