Test a table cell through tableSite.isCell, and trace no row outside a table

This commit is contained in:
2026-09-29 12:13:33 +02:00
committed by Lillem4n
parent 4fcf45b5d0
commit 8793681d8a
6 changed files with 16 additions and 15 deletions
+3 -3
View File
@@ -88,12 +88,12 @@ func (s *readSurvey) walk(n node, at surveyAt) {
}
for _, e := range renderEdges(n) {
to, isTemplate := e.to.(*template)
cell := tableSite{}
if isTemplate && to.site.row != formatRow {
var cell tableSite
if isTemplate {
cell = to.site
}
switch {
case cell.table == nil:
case !cell.isCell():
s.edge(n, e, at)
case cell.table == at.wholeTable:
in := at