We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de7179f commit 4c22b99Copy full SHA for 4c22b99
1 file changed
src/core/struct_tree.js
@@ -824,6 +824,23 @@ class StructTreePage {
824
825
const element = new StructElementNode(this, dict);
826
map.set(dict, element);
827
+ switch (element.role) {
828
+ case "L":
829
+ case "LBody":
830
+ case "LI":
831
+ case "Table":
832
+ case "THead":
833
+ case "TBody":
834
+ case "TFoot":
835
+ case "TR": {
836
+ // Always collect all child nodes of lists and tables, even empty ones
837
+ for (const kid of element.kids) {
838
+ if (kid.type === StructElementType.ELEMENT) {
839
+ this.addNode(kid.dict, map, level - 1);
840
+ }
841
842
843
844
845
const parent = dict.get("P");
846
0 commit comments