Skip to content

Commit

Permalink
Merge pull request #620 from veraPDF/namespace_rolemap
Browse files Browse the repository at this point in the history
Fix getRoleMapToSameNamespaceTag
  • Loading branch information
MaximPlusov authored Feb 6, 2024
2 parents cac89ea + 62b6b15 commit f38fef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/verapdf/tools/TaggedPDFHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public static String getRoleMapToSameNamespaceTag(StructureType type) {
StructureType curr = getEquivalent(prev, Collections.emptyMap());
while (curr != null) {
if (curr.getNameSpaceURI() != null && curr.getNameSpaceURI().equals(prev.getNameSpaceURI())) {
return curr.getNameSpaceURI();
return prev.getNameSpaceURI() + ":" + (prev.getType() != null ? prev.getType().getValue() : null);
}
if (isVisited(curr) || isStandardType(curr)) {
return null;
Expand Down

0 comments on commit f38fef2

Please sign in to comment.