Trace the row a render stands in, skip a fieldless record, and cover a cell reading through a template
This commit is contained in:
+2
-2
@@ -36,8 +36,8 @@ func renderOnce(s *session, n node) string {
|
||||
func expandAnew(s *session, t *template) string {
|
||||
var set holdSet
|
||||
if s.trace != nil {
|
||||
s.trace.depth++
|
||||
defer func() { s.trace.depth-- }()
|
||||
s.trace.repeatDepth++
|
||||
defer func() { s.trace.repeatDepth-- }()
|
||||
}
|
||||
return expand(s, t, renderScope{set: &set})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user