Skip to content

Commit

Permalink
MAINT: Increase readability
Browse files Browse the repository at this point in the history
Reorder two elif so similar operators are consecutive.
  • Loading branch information
j-t-1 authored Jan 30, 2025
1 parent 5655d66 commit 4cb4e2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypdf/_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -2086,7 +2086,7 @@ def process_operation(operator: bytes, operands: List[Any]) -> None:
for operands, operator in content.operations:
if visitor_operand_before is not None:
visitor_operand_before(operator, operands, cm_matrix, tm_matrix)
# Multiple operators are defined in here
# Multiple operators are handled here
if operator == b"'":
process_operation(b"T*", [])
process_operation(b"Tj", operands)
Expand Down Expand Up @@ -2161,7 +2161,7 @@ def process_operation(operator: bytes, operands: List[Any]) -> None:
process_operation(operator, operands)
if visitor_operand_after is not None:
visitor_operand_after(operator, operands, cm_matrix, tm_matrix)
output += text # just in case of
output += text # just in case
if text != "" and visitor_text is not None:
visitor_text(text, memo_cm, memo_tm, cmap[3], font_size)
return output
Expand Down

0 comments on commit 4cb4e2c

Please sign in to comment.