Skip to content

test: keep the honest-table fixture's code cell on white-space: pre - #6662

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-6661
Nov 21, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-6661

Conversation

@leaf-agent

@leaf-agent leaf-agent commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Since #6629, a <pre> in the reading face wraps lines too long for its box. The honest-table fixture in test_every_table_the_theme_sets_honestly_passes_the_gate puts <pre>def go():\n return 5</pre> in a 139px column of a table that scrolls sideways. In macOS's monospace font, return 5 is wider than 139px, so the line wrapped and the render gate correctly reported a squeezed-table on <table id=sessions>. The fixture exists to show that a newline the author wrote under <pre> doesn't count as a wrap. It now keeps its lines with white-space: pre, the same fix #6629 applied to the fixtures it knew had scrolling code blocks. Neither the gate nor the theme changes.

Evidence from ci dispatches on the macOS runner (--workers 1 --load 4):

The test also passes locally on Linux.

This repairs one of the five macOS-only failures in #6661. Three others reproduce intermittently on the macOS runner and each has its own issue: #6663 (dial sheets in Firefox), #6664 (seated-thread focus) and #6665 (server start). The file editor gutter passed 24 of 24 dispatched copies and stays with #6661.

Refs #6661 — automated triage

…honest-table gate test

#6629 wraps a reading-face <pre>'s long lines. The honest-table fixture's
`<pre>def go():\n    return 5</pre>` stands in a 139px column of a table
that scrolls sideways, and on macOS's monospace font `    return 5` is
wider than that, so the cell wrapped and the render gate reported a
squeezed table on `test_every_table_the_theme_sets_honestly_passes_the_gate`
(6 of 6 copies on the macOS runner at c72a8ad). The fixture exercises a
newline the author wrote under <pre>, so it now keeps its lines with
`white-space: pre`, as #6629 gave its other code fixtures. The gate's
behavior is unchanged.

Refs #6661
@leaf-agent
leaf-agent merged commit 5752b5f into main Nov 21, 2026
11 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-6661 branch November 21, 2026 16:20
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