Repository navigation
Read a table row taller than a page cell by cell across the page break - #20
Merged
Merged
Conversation
A row too tall for one page is cut with its cells side by side: a page prints the first part of each cell, the next page the rest of each. Every character is printed, in order, but page by page it is not the order of the text, where a cell is whole before the next begins. The PDF check refused such a document although it was right. A cell that spans several rows and runs over a page read the same way. The row prints as before. The check gains a second reading, used only after the plain one has failed, so every document that passed is judged as it was. In it a table cell may be left unfinished where the next line begins the same table's next cell; what is left must be printed in order and in full on a later page, before anything else of that page, and never on the page it was left on. Every line must be the exact text expected at one of those places, and nothing may be left over. Two cells whose last lines share a baseline come back as one line, and are read as the end of one and the rest of the other. The report says cellsAcrossPages. The same PDF is still refused for a text with a word changed, with text added to a cell, or with the cells the other way round, and a table on one page is read only in its own order. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T34myuug2GWTRhCC4faCxL
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f71e46efd2
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…line either way The second reading of a PDF, for a table row taller than a page, had two faults. It only put off an unfinished cell when a later page did not go on with it, so the next row could be read first and the rest of the cell a page later. What is left of a cell must now go on at the top of the next page, and of every page after until it is finished; a page that holds none of it is refused. It gave a line to the unfinished cell whenever it fitted, so two cells that hold the same line could make it refuse a correct document. Each way of reading such a line is now followed, the plainest first, within a counted limit. Every way obeys the same rules, so nothing more is accepted. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T34myuug2GWTRhCC4faCxL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The item recorded as still open in #15.
What was wrong
A table row too tall for one page is cut with its cells side by side: one page prints the first part of each cell, the next page the rest of each. Every character is printed, in order. But the text has the first cell whole before the second begins, so the PDF, read page by page, did not read back as the text, and the check refused a document that was right. A cell that spans several rows and runs over a page read the same way.
What changed
The row prints as before. The PDF check gains a second reading (
readSplitRows), used only after the plain reading has failed, so every document that passed before is judged exactly as it was.SPLIT_ROW_TURNS, 20,000); a document that runs out is refused.The report carries
cellsAcrossPages, a count.What it still refuses
The same PDF is refused for a text with a word changed, with text added to a cell, or with the two cells the other way round. A table on one page is read only in its own order. Comparing a row's words without their order was rejected: it would pass cells printed in the wrong columns.
After review
Both findings of the automated review were reproduced and are fixed in the second commit:
Tests
npm test(224) and every Electron check (xvfb-run -a npm run test:app, 57 fidelity checks) pass locally on Linux for both commits.https://claude.ai/code/session_01T34myuug2GWTRhCC4faCxL
Generated by Claude Code