Fixed collect at document level

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 69386316f3
commit 6ed037a9f6
2 changed files with 10 additions and 1 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ func CollectOperator(d *dataTreeNavigator, matchMap *list.List, pathNode *PathTr
path = candidate.Path[:len(candidate.Path)-1]
document = candidate.Document
}
node.Content = append(node.Content, candidate.Node)
node.Content = append(node.Content, UnwrapDoc(candidate.Node))
}
collectC := &CandidateNode{Node: node, Document: document, Path: path}