Skip to content

Commit ed88924

Browse files
author
Nicklas Tegner
authored
Merge pull request #235 from timgates42/bugfix_typos
docs: Fix a few typos
2 parents 6670e90 + 0903d7f commit ed88924

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pypandoc/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,13 +321,13 @@ def _convert_input(source, format, input_type, to, extra_args=(), outputfile=Non
321321
try:
322322
stdout = stdout.decode('utf-8')
323323
except UnicodeDecodeError:
324-
# this shouldn't happen: pandoc more or less garantees that the output is utf-8!
324+
# this shouldn't happen: pandoc more or less guarantees that the output is utf-8!
325325
raise RuntimeError('Pandoc output was not utf-8.')
326326

327327
try:
328328
stderr = stderr.decode('utf-8')
329329
except UnicodeDecodeError:
330-
# this shouldn't happen: pandoc more or less garantees that the output is utf-8!
330+
# this shouldn't happen: pandoc more or less guarantees that the output is utf-8!
331331
raise RuntimeError('Pandoc output was not utf-8.')
332332

333333
# check that pandoc returned successfully
@@ -460,7 +460,7 @@ def get_pandoc_path():
460460
461461
It will return a path to pandoc which is used by pypandoc.
462462
463-
This might be a full path or, if pandoc is on PATH, simple `pandoc`. It's garanteed
463+
This might be a full path or, if pandoc is on PATH, simple `pandoc`. It's guaranteed
464464
to be callable (i.e. we could get version information from `pandoc --version`).
465465
If `PYPANDOC_PANDOC` is set and valid, it will return that value. If the environment
466466
variable is not set, either the full path to the included pandoc or the pandoc in
@@ -503,7 +503,7 @@ def _ensure_pandoc_path(quiet=False):
503503
if os.getenv('ProgramFiles(x86)', None):
504504
search_paths.append(os.path.expandvars("${ProgramFiles(x86)}\\Pandoc\\Pandoc"))
505505

506-
# bin can also be used on windows (conda at leats has it in path), so
506+
# bin can also be used on windows (conda at least has it in path), so
507507
# include it unconditionally
508508
search_paths.append(os.path.join(sys.exec_prefix, "bin", "pandoc"))
509509
# If a user added the complete path to pandoc to an env, use that as the

pypandoc/pandoc_download.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def _get_pandoc_urls(version="latest"):
4545
# regex for the binaries
4646
processor_architecture = "arm" if platform.uname()[4].startswith("arm") else "amd"
4747
regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+"|x86|mac).*\.(?:msi|deb|pkg)")
48-
# a list of urls to the bainaries
48+
# a list of urls to the binaries
4949
pandoc_urls_list = regex.findall(content.decode("utf-8"))
5050
# actual pandoc version
5151
version = pandoc_urls_list[0].split('/')[5]

0 commit comments

Comments
 (0)