FA-80330 / Typography line breaking / Member archive
URL line breaking: equals and ampersand sides · case 05
Query strings only break on one side of = and &.
Case contract
Input [url, width]. Break opportunities (no hyphen added): after ":"; after "//" (never between its slashes); before a single "/"; before . - _ ? # % ~; before or after = and &. While the rest exceeds the width, break at the latest opportunity within width characters, else hard-break at width. Return lines.
Why this case matters
Line breaking decides where paragraphs wrap on screen and in print; a wrong decision point shifts every following line.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: equals and ampersand sides | ["http", "s://", "x.io", "/sea", "rch", "?ter", "m", "=lin", "e", "%20b", "reak", "\u0026lan", "g=en"] | ["http", "s://", "x.io", "/sea", "rch", "?ter", "m=", "line", "%20b", "reak", "\u0026", "lang", "=en"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗