Repository navigation
Spec 001 T030 follow-up: long-token breaks - #163
Closed
adamjohnwright wants to merge 2 commits into
Closed
adamjohnwright wants to merge 2 commits into
adamjohnwright wants to merge 2 commits into
Conversation
A token ends only at a space Chromium breaks at (space, tab, line feed, carriage return), not at a no-break space, U+202F or U+FEFF. A summation's markup is read whole, so a word runs through inline tags and is counted whole; tags are never counted or broken into. A token over 40 breaks into equal pieces of at most 20. Unit tests for text() and markupBreaks, each shown failing with its mutant. The docs say what can still overflow, measured: three columns of unbroken 40-character words, four of 30, five of 21. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Replaced after review: Unicode breakable spaces no longer ended tokens (9 release-98 summations hold them); documented overflow figures didn't hold. |
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.
Spec 001, a follow-up to T030 (#162), from its review's lows.
x<i>y</i>z) is counted whole: summations are read with their own tag scanner; inline tags join a word, block tags end it; tags are never counted or broken into.text()andmarkupBreaks: character references never split, attributes untouched, inline tags, adjacent cells.Tests:
test/layout/html.test.ts(7); 448 in all. Mutants in tasks.md (T030's follow-up line).🤖 Generated with Claude Code