Skip to content

Commit

Permalink
Merge pull request #234 from timgates42/bugfix_typos
Browse files Browse the repository at this point in the history
docs: Fix a few typos
  • Loading branch information
gawel committed Jul 17, 2022
2 parents f114f6b + 14ef4ae commit ce99700
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/pseudo_classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ Matches elements which contain at least one element that matches
:header
==================

Matches all header elelements (h1, ..., h6)::
Matches all header elements (h1, ..., h6)::

>>> from pyquery import PyQuery
>>> d = PyQuery('<div><h1>title</h1></div>')
Expand Down
2 changes: 1 addition & 1 deletion pyquery/cssselectpatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def xpath_reset_pseudo(self, xpath):
return xpath

def xpath_header_pseudo(self, xpath):
"""Matches all header elelements (h1, ..., h6)::
"""Matches all header elements (h1, ..., h6)::
>>> from pyquery import PyQuery
>>> d = PyQuery('<div><h1>title</h1></div>')
Expand Down
2 changes: 1 addition & 1 deletion pyquery/pyquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def __add__(self, other):
return self._copy(self[:] + other[:])

def extend(self, other):
"""Extend with anoter PyQuery object"""
"""Extend with another PyQuery object"""
assert isinstance(other, self.__class__)
self._extend(other[:])
return self
Expand Down
4 changes: 2 additions & 2 deletions pyquery/text.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def extract_text_array(dom, squash_artifical_nl=True, strip_artifical_nl=True):
if dom.tag in SEPARATORS:
r.append(True) # equivalent of '\n' used to designate separators
elif dom.tag not in INLINE_TAGS:
# equivalent of '\n' used to designate artifically inserted newlines
# equivalent of '\n' used to designate artificially inserted newlines
r.append(None)
if dom.text is not None:
r.append(dom.text)
Expand All @@ -87,7 +87,7 @@ def extract_text_array(dom, squash_artifical_nl=True, strip_artifical_nl=True):
if child.tail is not None:
r.append(child.tail)
if dom.tag not in INLINE_TAGS and dom.tag not in SEPARATORS:
# equivalent of '\n' used to designate artifically inserted newlines
# equivalent of '\n' used to designate artificially inserted newlines
r.append(None)
if squash_artifical_nl:
r = _squash_artifical_nl(r)
Expand Down

0 comments on commit ce99700

Please sign in to comment.