Skip to content

Commit 4cb4e2c

Browse files
authored
MAINT: Increase readability
Reorder two elif so similar operators are consecutive.
1 parent 5655d66 commit 4cb4e2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pypdf/_page.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2086,7 +2086,7 @@ def process_operation(operator: bytes, operands: List[Any]) -> None:
20862086
for operands, operator in content.operations:
20872087
if visitor_operand_before is not None:
20882088
visitor_operand_before(operator, operands, cm_matrix, tm_matrix)
2089-
# Multiple operators are defined in here
2089+
# Multiple operators are handled here
20902090
if operator == b"'":
20912091
process_operation(b"T*", [])
20922092
process_operation(b"Tj", operands)
@@ -2161,7 +2161,7 @@ def process_operation(operator: bytes, operands: List[Any]) -> None:
21612161
process_operation(operator, operands)
21622162
if visitor_operand_after is not None:
21632163
visitor_operand_after(operator, operands, cm_matrix, tm_matrix)
2164-
output += text # just in case of
2164+
output += text # just in case
21652165
if text != "" and visitor_text is not None:
21662166
visitor_text(text, memo_cm, memo_tm, cmap[3], font_size)
21672167
return output

0 commit comments

Comments
 (0)