Skip to content

Commit

Permalink
updated for TBody, THead, TFoot, metanorma/metanorma-iso#1001
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Jun 15, 2023
1 parent 11ebc71 commit dfc8255
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public final PDFStructElem build(StructureHierarchyMember parent, Attributes att
structureType.toString());
}
}
if (structureType.toString().equals("P")) {
/*if (structureType.toString().equals("P")) {
//findParentP(parent);
// if ancestor contains P already, then add current P after it
PDFStructElem ancestor = ((PDFStructElem) parent).getParentStructElem();
Expand All @@ -165,7 +165,7 @@ public final PDFStructElem build(StructureHierarchyMember parent, Attributes att
registerStructureElement(structElem, pdfFactory, attributes);
return structElem;
}
}
}*/
PDFStructElem structElem = createStructureElement(parent, structureType);
setAttributes(structElem, attributes);
addKidToParent(structElem, parent, attributes);
Expand Down Expand Up @@ -441,7 +441,9 @@ public void endNode(String name) {

private boolean isPDFA1Safe(String name) {
return !((pdfFactory.getDocument().getProfile().getPDFAMode().isPart1()
|| pdfFactory.getDocument().getProfile().getPDFUAMode().isEnabled())
// commented, see https://github.com/metanorma/metanorma-iso/issues/1001#issuecomment-1592786352
// || pdfFactory.getDocument().getProfile().getPDFUAMode().isEnabled()
)
&& (name.equals("table-body")
|| name.equals("table-header")
|| name.equals("table-footer")));
Expand Down

0 comments on commit dfc8255

Please sign in to comment.