3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-20 07:05:44 +01:00

Answer prose round 1: one name per thing in the new docs, the changelog points at MIGRATION's rows, item 82 drops its partial file list

This commit is contained in:
2026-10-05 09:43:52 +02:00
committed by Lillem4n
parent dbc8b91f91
commit 380a894589
8 changed files with 21 additions and 29 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ function leafEdges(leaf: AdfNode, previous: AdfNode | undefined, next: AdfNode |
return edges
}
// How many of the leaf's marks the edge whitespace keeps, `undefined` where it goes at a line edge.
// How many of the leaf's marks the edge whitespace keeps, `undefined` where it drops at a line edge.
function edgeDepth(marks: readonly AdfMark[], neighbour: AdfNode | undefined, whitespace: string): number | undefined {
if (whitespace === '') return marks.length
const lineEdge = neighbour === undefined || neighbour.type === 'hardBreak'