3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-21 07:32:58 +01:00

Answer prose round 1: 0 🔴, 7 🟡 (0 misread); the bound test's block count is 53, comments name their referents

This commit is contained in:
2026-10-29 16:19:12 +01:00
committed by Lillem4n
parent bbd2ad9c74
commit ee95b3035f
8 changed files with 11 additions and 12 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ export function walkBlocks(nodes: readonly AdfNode[], path: ConvertErrorPath, de
for (const [index, node] of nodes.entries()) {
const block = emitBlock(node, [...path, 'content', index], depth, writing)
if (!block.ok) return block
// Refused on the measure, before any text is written, so every engine stops at the first block past the bound.
// Refused on the measure, before any text is written, so every engine stops at the first block past V8's longest string.
const fits = withinLongest(block.value.text.length, block.value)
if (!fits.ok) return fits
headroom = Math.min(headroom, block.value.headroom)