From 3fad73031e544de6c9f74621de923da3806a6c21 Mon Sep 17 00:00:00 2001 From: Edward Betts Date: Sat, 13 Jan 2018 09:25:40 +0000 Subject: Correct spelling mistakes. --- markdown/__init__.py | 2 +- markdown/blockprocessors.py | 2 +- markdown/extensions/def_list.py | 4 ++-- markdown/extensions/footnotes.py | 2 +- markdown/extensions/smart_strong.py | 2 +- markdown/preprocessors.py | 2 +- markdown/test_tools.py | 6 +++--- markdown/treeprocessors.py | 4 ++-- tests/basic/markdown-documentation-basics.html | 2 +- tests/basic/markdown-documentation-basics.txt | 2 +- tests/basic/markdown-syntax.html | 2 +- tests/basic/markdown-syntax.txt | 2 +- tests/extensions/attr_list.html | 2 +- tests/extensions/attr_list.txt | 2 +- tests/extensions/extra/markdown-syntax.html | 2 +- tests/extensions/extra/markdown-syntax.txt | 2 +- tests/extensions/toc.html | 2 +- tests/extensions/toc.txt | 2 +- tests/misc/br.html | 2 +- tests/misc/br.txt | 2 +- tests/test_syntax/blocks/test_headers.py | 2 +- 21 files changed, 25 insertions(+), 25 deletions(-) diff --git a/markdown/__init__.py b/markdown/__init__.py index 584990f..3769496 100644 --- a/markdown/__init__.py +++ b/markdown/__init__.py @@ -34,7 +34,7 @@ from __future__ import absolute_import from __future__ import unicode_literals from .core import Markdown, markdown, markdownFromFile -# For backward compatability as some extensions expect it... +# For backward compatibility as some extensions expect it... from .extensions import Extension # noqa __all__ = ['Markdown', 'markdown', 'markdownFromFile'] diff --git a/markdown/blockprocessors.py b/markdown/blockprocessors.py index 79c7f2e..223520f 100644 --- a/markdown/blockprocessors.py +++ b/markdown/blockprocessors.py @@ -268,7 +268,7 @@ class BlockQuoteProcessor(BlockProcessor): before = block[:m.start()] # Lines before blockquote # Pass lines before blockquote in recursively for parsing forst. self.parser.parseBlocks(parent, [before]) - # Remove ``> `` from begining of each line. + # Remove ``> `` from beginning of each line. block = '\n'.join( [self.clean(line) for line in block[m.start():].split('\n')] ) diff --git a/markdown/extensions/def_list.py b/markdown/extensions/def_list.py index 9057ebd..54fc064 100644 --- a/markdown/extensions/def_list.py +++ b/markdown/extensions/def_list.py @@ -51,7 +51,7 @@ class DefListProcessor(BlockProcessor): sibling = self.lastChild(parent) if not terms and sibling is None: # This is not a definition item. Most likely a paragraph that - # starts with a colon at the begining of a document or list. + # starts with a colon at the beginning of a document or list. blocks.insert(0, raw_block) return False if not terms and sibling.tag == 'p': @@ -59,7 +59,7 @@ class DefListProcessor(BlockProcessor): state = 'looselist' terms = sibling.text.split('\n') parent.remove(sibling) - # Aquire new sibling + # Acquire new sibling sibling = self.lastChild(parent) else: state = 'list' diff --git a/markdown/extensions/footnotes.py b/markdown/extensions/footnotes.py index 072c5dd..de3fc17 100644 --- a/markdown/extensions/footnotes.py +++ b/markdown/extensions/footnotes.py @@ -339,7 +339,7 @@ class FootnotePattern(Pattern): class FootnotePostTreeprocessor(Treeprocessor): - """ Ammend footnote div with duplicates. """ + """ Amend footnote div with duplicates. """ def __init__(self, footnotes): self.footnotes = footnotes diff --git a/markdown/extensions/smart_strong.py b/markdown/extensions/smart_strong.py index eeded31..9349f41 100644 --- a/markdown/extensions/smart_strong.py +++ b/markdown/extensions/smart_strong.py @@ -2,7 +2,7 @@ Smart_Strong Extension for Python-Markdown ========================================== -This extention adds smarter handling of double underscores within words. +This extension adds smarter handling of double underscores within words. See for documentation. diff --git a/markdown/preprocessors.py b/markdown/preprocessors.py index d0af51a..8c87ecf 100644 --- a/markdown/preprocessors.py +++ b/markdown/preprocessors.py @@ -44,7 +44,7 @@ class Preprocessor(util.Processor): class NormalizeWhitespace(Preprocessor): - """ Normalize whitespace for consistant parsing. """ + """ Normalize whitespace for consistent parsing. """ def run(self, lines): source = '\n'.join(lines) diff --git a/markdown/test_tools.py b/markdown/test_tools.py index 9324bd4..204536a 100644 --- a/markdown/test_tools.py +++ b/markdown/test_tools.py @@ -128,7 +128,7 @@ class LegacyTestMeta(type): return type.__new__(cls, name, bases, dct) -# Define LegacyTestCase class with metaclass in Py2 & Py3 compatable way. +# Define LegacyTestCase class with metaclass in Py2 & Py3 compatible way. # See https://stackoverflow.com/a/38668373/866026 # TODO: If/when py2 support is dropped change to: # class LegacyTestCase(unittest.Testcase, metaclass=LegacyTestMeta) @@ -142,7 +142,7 @@ class LegacyTestCase(LegacyTestMeta('LegacyTestCase', (unittest.TestCase,), {'__ text-based test files and define various behaviors/defaults for those tests. The following properties are supported: - location: A path to the directory fo test files. An absolute path is prefered. + location: A path to the directory fo test files. An absolute path is preferred. exclude: A list of tests to exclude. Each test name should comprise the filename without an extension. normalize: A boolean value indicating if the HTML should be normalized. @@ -161,7 +161,7 @@ class LegacyTestCase(LegacyTestMeta('LegacyTestCase', (unittest.TestCase,), {'__ test file. The keyword arguments will "update" the `default_kwargs`. When the class instance is created, it will walk the given directory and create - a seperate unitttest for each set of test files using the naming scheme: + a separate unitttest for each set of test files using the naming scheme: `test_filename`. One unittest will be run for each set of input and output files. """ pass diff --git a/markdown/treeprocessors.py b/markdown/treeprocessors.py index 8feea8d..e2566a4 100644 --- a/markdown/treeprocessors.py +++ b/markdown/treeprocessors.py @@ -292,7 +292,7 @@ class InlineProcessor(Treeprocessor): Arguments: * tree: ElementTree object, representing Markdown tree. - * ancestors: List of parent tag names that preceed the tree node (if needed). + * ancestors: List of parent tag names that precede the tree node (if needed). Returns: ElementTree object with applied inline patterns. @@ -391,7 +391,7 @@ class PrettifyTreeprocessor(Treeprocessor): """ Add linebreaks to ElementTree root object. """ self._prettifyETree(root) - # Do
's seperately as they are often in the middle of + # Do
's separately as they are often in the middle of # inline content and missed by _prettifyETree. brs = root.iter('br') for br in brs: diff --git a/tests/basic/markdown-documentation-basics.html b/tests/basic/markdown-documentation-basics.html index 3bcaea9..d9214a2 100644 --- a/tests/basic/markdown-documentation-basics.html +++ b/tests/basic/markdown-documentation-basics.html @@ -94,7 +94,7 @@ Or, if you prefer, <strong>use two underscores instead</strong>.<

Lists

Unordered (bulleted) lists use asterisks, pluses, and hyphens (*, +, and -) as list markers. These three markers are -interchangable; this:

+interchangeable; this:

*   Candy.
 *   Gum.
 *   Booze.
diff --git a/tests/basic/markdown-documentation-basics.txt b/tests/basic/markdown-documentation-basics.txt
index 486055c..6c5a6fd 100644
--- a/tests/basic/markdown-documentation-basics.txt
+++ b/tests/basic/markdown-documentation-basics.txt
@@ -123,7 +123,7 @@ Output:
 
 Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`,
 `+`, and `-`) as list markers. These three markers are
-interchangable; this:
+interchangeable; this:
 
     *   Candy.
     *   Gum.
diff --git a/tests/basic/markdown-syntax.html b/tests/basic/markdown-syntax.html
index 038c9d1..2b79d2d 100644
--- a/tests/basic/markdown-syntax.html
+++ b/tests/basic/markdown-syntax.html
@@ -241,7 +241,7 @@ Quote Level from the Text menu.

Lists

Markdown supports ordered (numbered) and unordered (bulleted) lists.

-

Unordered lists use asterisks, pluses, and hyphens -- interchangably +

Unordered lists use asterisks, pluses, and hyphens -- interchangeably -- as list markers:

*   Red
 *   Green
diff --git a/tests/basic/markdown-syntax.txt b/tests/basic/markdown-syntax.txt
index dabd75c..fabec2e 100644
--- a/tests/basic/markdown-syntax.txt
+++ b/tests/basic/markdown-syntax.txt
@@ -298,7 +298,7 @@ Quote Level from the Text menu.
 
 Markdown supports ordered (numbered) and unordered (bulleted) lists.
 
-Unordered lists use asterisks, pluses, and hyphens -- interchangably
+Unordered lists use asterisks, pluses, and hyphens -- interchangeably
 -- as list markers:
 
     *   Red
diff --git a/tests/extensions/attr_list.html b/tests/extensions/attr_list.html
index 4f21d86..e7bfe0b 100644
--- a/tests/extensions/attr_list.html
+++ b/tests/extensions/attr_list.html
@@ -13,7 +13,7 @@ And a nested 
-

No colon for compatability with Headerid ext

+

No colon for compatibility with Headerid ext

Also a codespan: {: .someclass}.

Bad Syntax

    diff --git a/tests/extensions/attr_list.txt b/tests/extensions/attr_list.txt index 98f1cc7..465ce4f 100644 --- a/tests/extensions/attr_list.txt +++ b/tests/extensions/attr_list.txt @@ -28,7 +28,7 @@ Now test overrides # This should be ignored. {: #someid .someclass } -### No colon for compatability with Headerid ext { #hash3 } +### No colon for compatibility with Headerid ext { #hash3 } Also a codespan: `{: .someclass}`{: .foo}. {: #the_end} diff --git a/tests/extensions/extra/markdown-syntax.html b/tests/extensions/extra/markdown-syntax.html index 038c9d1..2b79d2d 100644 --- a/tests/extensions/extra/markdown-syntax.html +++ b/tests/extensions/extra/markdown-syntax.html @@ -241,7 +241,7 @@ Quote Level from the Text menu.

    Lists

    Markdown supports ordered (numbered) and unordered (bulleted) lists.

    -

    Unordered lists use asterisks, pluses, and hyphens -- interchangably +

    Unordered lists use asterisks, pluses, and hyphens -- interchangeably -- as list markers:

    *   Red
     *   Green
    diff --git a/tests/extensions/extra/markdown-syntax.txt b/tests/extensions/extra/markdown-syntax.txt
    index dabd75c..fabec2e 100644
    --- a/tests/extensions/extra/markdown-syntax.txt
    +++ b/tests/extensions/extra/markdown-syntax.txt
    @@ -298,7 +298,7 @@ Quote Level from the Text menu.
     
     Markdown supports ordered (numbered) and unordered (bulleted) lists.
     
    -Unordered lists use asterisks, pluses, and hyphens -- interchangably
    +Unordered lists use asterisks, pluses, and hyphens -- interchangeably
     -- as list markers:
     
         *   Red
    diff --git a/tests/extensions/toc.html b/tests/extensions/toc.html
    index 3559d45..4936f0d 100644
    --- a/tests/extensions/toc.html
    +++ b/tests/extensions/toc.html
    @@ -222,7 +222,7 @@ example, with BBEdit, you can make a selection and choose Increase
     Quote Level from the Text menu.

    Lists

    Markdown supports ordered (numbered) and unordered (bulleted) lists.

    -

    Unordered lists use asterisks, pluses, and hyphens -- interchangably +

    Unordered lists use asterisks, pluses, and hyphens -- interchangeably -- as list markers:

    *   Red
     *   Green
    diff --git a/tests/extensions/toc.txt b/tests/extensions/toc.txt
    index f297200..f71afd2 100644
    --- a/tests/extensions/toc.txt
    +++ b/tests/extensions/toc.txt
    @@ -261,7 +261,7 @@ Quote Level from the Text menu.
     
     Markdown supports ordered (numbered) and unordered (bulleted) lists.
     
    -Unordered lists use asterisks, pluses, and hyphens -- interchangably
    +Unordered lists use asterisks, pluses, and hyphens -- interchangeably
     -- as list markers:
     
         *   Red
    diff --git a/tests/misc/br.html b/tests/misc/br.html
    index 08563a5..e8e6fdf 100644
    --- a/tests/misc/br.html
    +++ b/tests/misc/br.html
    @@ -8,4 +8,4 @@ Or, if you prefer, <strong>use two underscores instead</strong>.<
     

    Lists

    Unordered (bulleted) lists use asterisks, pluses, and hyphens (*, +, and -) as list markers. These three markers are -interchangable; this:

    \ No newline at end of file +interchangeable; this:

    \ No newline at end of file diff --git a/tests/misc/br.txt b/tests/misc/br.txt index 59d29e0..19f4cf1 100644 --- a/tests/misc/br.txt +++ b/tests/misc/br.txt @@ -12,5 +12,5 @@ Output: Unordered (bulleted) lists use asterisks, pluses, and hyphens (`*`, `+`, and `-`) as list markers. These three markers are -interchangable; this: +interchangeable; this: diff --git a/tests/test_syntax/blocks/test_headers.py b/tests/test_syntax/blocks/test_headers.py index 63e3a7f..5164887 100644 --- a/tests/test_syntax/blocks/test_headers.py +++ b/tests/test_syntax/blocks/test_headers.py @@ -561,7 +561,7 @@ class TestHashHeaders(TestCase): '
    # This is an H6
    ' ) - # TODO: Possably change the following behavior. While this follows the behavior + # TODO: Possibly change the following behavior. While this follows the behavior # of markdown.pl, it is rather uncommon and not nessecarily intuitive. # See: http://johnmacfarlane.net/babelmark2/?normalize=1&text=%23+This+is+an+H1+%23+ def test_hash_h1_closed_trailing_space(self): -- cgit v1.2.3