Skip to content

fix(kit): the receipt keeps a marking's written spaces - #56

Draft
Adam Poulemanos (bashandbone) wants to merge 1 commit into
feat/session-recordfrom
fix/receipt-keeps-written-spaces
Draft

Adam Poulemanos (bashandbone) wants to merge 1 commit into
feat/session-recordfrom
fix/receipt-keeps-written-spaces

Conversation

@bashandbone

Copy link
Copy Markdown
Contributor

Why

The receipt shows each finding's marking before and after. When the two differ only by one space, they looked the same, because the browser collapsed the run of spaces. Paragraph 6 of the memo is the case: (C//REL TO USA, GBR) became (C//REL TO USA, GBR) and the receipt showed the same text twice.

What changed

  • kit.css: a marking inside the receipt keeps its written spaces (white-space: pre on the receipt's marking pieces).

Scope

The receipt only. Cards, the document view and the banner are not changed.

Verification

  • Live demo page with this build: paragraph 6's before line shows two spaces, the after line one. Measured in the page, both pieces compute white-space: pre.
  • node --test: 4 passed. vp test: 325 passed, 87 skipped.

Based on feat/session-record.

🤖 Generated with Claude Code

A before and after that differ only by one space looked the same,
because the browser collapsed the run of spaces.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

This branch has not been deployed

No deployments
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