Skip to content

Commit 8be2807

Browse files
julian-smith-artifex-comJorjMcKie
authored andcommitted
src/ tests/: codespell fixes.
1 parent fc526d6 commit 8be2807

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6475,7 +6475,7 @@ def to_fitz_y(pdf_y):
64756475
templ_dict["to"] = (0.0, 0.0)
64766476
templ_dict["zoom"] = 0.0
64776477

6478-
elif mode in ("/FitH", "/FitBH"):
6478+
elif mode in ("/FitH", "/FitBH"): # codespell:ignore
64796479
del templ_dict["dest"]
64806480
top = as_float(args[0]) if len(args) > 0 else None
64816481
y = to_fitz_y(top)
@@ -9082,7 +9082,7 @@ def apply_view(view):
90829082
self.lt = Point(0, 0)
90839083
return True
90849084

9085-
if mode in ("/FitH", "/FitBH"):
9085+
if mode in ("/FitH", "/FitBH"): # codespell:ignore
90869086
top = as_float(args[0]) if len(args) >= 1 else None
90879087
if top is not None:
90889088
self.lt = Point(0, top)

tests/test_named_links.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def test_resolve_names_fit_variants():
118118
"/NullPageDest [null /XYZ 10 20 0] "
119119
f"/FitDest [{page_xref} 0 R /Fit] "
120120
f"/FitBDest [{page_xref} 0 R /FitB] "
121-
f"/FitHDest [{page_xref} 0 R /FitH 20] "
122-
f"/FitHNull [{page_xref} 0 R /FitH null] "
121+
f"/FitHDest [{page_xref} 0 R /FitH 20] " # codespell:ignore
122+
f"/FitHNull [{page_xref} 0 R /FitH null] " # codespell:ignore
123123
f"/FitVDest [{page_xref} 0 R /FitV 15] "
124124
f"/FitBHDest [{page_xref} 0 R /FitBH 25] "
125125
f"/FitBVDest [{page_xref} 0 R /FitBV 30] "
@@ -151,7 +151,7 @@ def test_linkdest_view_fith_uri():
151151
class Dummy:
152152
is_external = False
153153
page = -1
154-
uri = "#page=1&view=FitH,-4.299011"
154+
uri = "#page=1&view=FitH,-4.299011" # codespell:ignore
155155

156156
d = pymupdf.linkDest(Dummy(), None, None)
157157
assert d.kind == pymupdf.LINK_GOTO

0 commit comments

Comments
 (0)