Commit f036382
Keep a numbered run together when a right-aligned marker rolls a digit
A numbered run with right-aligned markers (plos_game references) slides its left edge left by about one digit width when the number rolls 9->10, so the strict-same-left guard in Candidate.CanExtend vetoed the extension: reference 10 — the last item of the left column — escaped the run, kept its "10." marker, and its bold first line was misread as a heading while its wrapped continuation was orphaned. Grant an extra left-edge tolerance of one digit width per added digit when the marker grows and shifts left, so the run rolls through the digit boundary and reference 10 is emitted as a marker paragraph with its continuation absorbed.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent fe47a95 commit f036382
2 files changed
Lines changed: 51 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
69 | 96 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
289 | 311 | | |
290 | 312 | | |
291 | 313 | | |
| |||
327 | 349 | | |
328 | 350 | | |
329 | 351 | | |
330 | | - | |
| 352 | + | |
331 | 353 | | |
332 | 354 | | |
333 | 355 | | |
| |||
341 | 363 | | |
342 | 364 | | |
343 | 365 | | |
344 | | - | |
| 366 | + | |
345 | 367 | | |
346 | 368 | | |
347 | 369 | | |
| |||
0 commit comments