Skip to content

Commit

Permalink
Update PyPDF2/_cmap.py
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Thoma <[email protected]>
  • Loading branch information
pubpub-zz and MartinThoma authored Jul 20, 2022
1 parent 51fe3b4 commit 138d08f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PyPDF2/_cmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,9 @@ def compute_space_width(
w1[-1] = cast(float, ft1["/DW"])
except Exception:
w1[-1] = 1000.0
try:
if "/W" in ft1:
w = list(ft1["/W"]) # type: ignore
except Exception:
else:
w = []
while len(w) > 0:
st = w[0]
Expand Down

0 comments on commit 138d08f

Please sign in to comment.