Skip to content

Commit

Permalink
fix: probably fix class maps
Browse files Browse the repository at this point in the history
  • Loading branch information
dhdaines committed Aug 10, 2023
1 parent e2991d9 commit 3fd0834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdfplumber/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _make_element(self, obj: Any) -> Tuple[PDFStructElement, List[Any]]:
if "A" in obj:
attributes = self._make_attributes(obj["A"])
elif "C" in obj: # pragma: nocover
attr_class = resolve1(obj["C"])
attr_class = decode_text(obj["C"].name)
if attr_class in self.class_map:
attributes = self._make_attributes(self.class_map[attr_class])
lang = decode_text(obj["Lang"]) if "Lang" in obj else None
Expand Down

0 comments on commit 3fd0834

Please sign in to comment.