Skip the row loop of a column walk when a table has no token cells, and scan a cell for braces by byte

This commit is contained in:
2026-09-18 00:26:58 +02:00
parent 8c005070ec
commit 7993e04d95
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -63,6 +63,9 @@ func contained(n node) []namedNode {
case *table:
return append([]namedNode{{node: n.format}}, named(n.fields)...)
case *column:
if len(n.t.tokens) == 0 {
return nil
}
var out []namedNode
for r := 0; r < n.t.rows(); r++ {
if cell := n.t.cellNode(r, n.i); cell != nil {