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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user