Commit a68f3f0
claude: Fix latent bug in resolveCaptionCitations
Fix a 2021 bug in cites.lua where resolveCaptionCitations() returned
boolean instead of Inlines/nil. The Inlines walker expects either a
list of Inlines (modified) or nil (no changes), not true/false.
This bug was exposed when margin layout changes preserved column-margin
classes on FloatRefTarget, causing the previously-unreachable code path
to execute.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 35ad750 commit a68f3f0
2 files changed
Lines changed: 10 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 154 | + | |
157 | 155 | | |
| 156 | + | |
158 | 157 | | |
159 | 158 | | |
160 | 159 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
385 | 382 | | |
386 | 383 | | |
387 | 384 | | |
| |||
0 commit comments