According to section 14.8.4.3 "Block-Level Structure Elements"
(in particular subsection 14.8.4.3.3 "List Elements"), structure
elements of type LBody must be reported as block elements. This
patch changes the reported type from elementTypeUndefined to
elementTypeBlock accordingly.
---
 poppler/StructElement.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/poppler/StructElement.cc b/poppler/StructElement.cc
index 6392433..558cab4 100644
--- a/poppler/StructElement.cc
+++ b/poppler/StructElement.cc
@@ -552,7 +552,7 @@ static const struct TypeMapEntry {
   { StructElement::L,          "L",          elementTypeBlock,     
attributeMapList         },
   { StructElement::LI,         "LI",         elementTypeBlock,     
attributeMapBlock        },
   { StructElement::Lbl,        "Lbl",        elementTypeBlock,     
attributeMapBlock        },
-  { StructElement::LBody,      "LBody",      elementTypeUndefined, 
attributeMapBlock        },
+  { StructElement::LBody,      "LBody",      elementTypeBlock,     
attributeMapBlock        },
   { StructElement::Table,      "Table",      elementTypeBlock,     
attributeMapTable        },
   { StructElement::TR,         "TR",         elementTypeUndefined, 
attributeMapShared       },
   { StructElement::TH,         "TH",         elementTypeUndefined, 
attributeMapTableCell    },
-- 
1.8.5.3

_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to