Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a few doc typos #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ any time by running `htmlmin -h`::
put two of them: <!--!! comment -->.

-s, --remove-empty-space
When set, this removes empty space betwen tags in certain cases.
When set, this removes empty space between tags in certain cases.
Specifically, it will remove empty space if and only if there a newline
character occurs within the space. Thus, code like
'<span>x</span> <span>y</span>' will be left alone, but code such as
Expand All @@ -90,7 +90,7 @@ any time by running `htmlmin -h`::
html if you spread two inline tags over two lines. Use with caution.

--remove-all-empty-space
When set, this removes ALL empty space betwen tags. WARNING: this can and
When set, this removes ALL empty space between tags. WARNING: this can and
likely will cause unintended consequences. For instance, '<i>X</i> <i>Y</i>'
will become '<i>X</i><i>Y</i>'. Putting whitespace along with other text will
avoid this problem. Only use if you are confident in the result. Whitespace is
Expand All @@ -102,7 +102,7 @@ any time by running `htmlmin -h`::
-H, --in-head If you are parsing only a fragment of HTML, and the fragment occurs in the
head of the document, setting this will remove some extra whitespace.

-k, --keep-pre-attr HTMLMin supports the propietary attribute 'pre' that can be added to elements
-k, --keep-pre-attr HTMLMin supports the proprietary attribute 'pre' that can be added to elements
to prevent minification. This attribute is removed by default. Set this flag to
keep the 'pre' attributes in place.

Expand All @@ -116,7 +116,7 @@ any time by running `htmlmin -h`::
-p [TAG [TAG ...]], --pre-tags [TAG [TAG ...]]
By default, the contents of 'pre', and 'textarea' tags are left unminified.
You can specify different tags using the --pre-tags option. 'script' and 'style'
tags are always left unmininfied.
tags are always left unminified.

-e ENCODING, --encoding ENCODING
Encoding to read and write with. Default 'utf-8'.
8 changes: 4 additions & 4 deletions htmlmin/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@

parser.add_argument('-s', '--remove-empty-space',
help=(
'''When set, this removes empty space betwen tags in certain cases.
'''When set, this removes empty space between tags in certain cases.
Specifically, it will remove empty space if and only if there a newline
character occurs within the space. Thus, code like
'<span>x</span> <span>y</span>' will be left alone, but code such as
Expand All @@ -80,7 +80,7 @@

parser.add_argument('--remove-all-empty-space',
help=(
'''When set, this removes ALL empty space betwen tags. WARNING: this can and
'''When set, this removes ALL empty space between tags. WARNING: this can and
likely will cause unintended consequences. For instance, '<i>X</i> <i>Y</i>'
will become '<i>X</i><i>Y</i>'. Putting whitespace along with other text will
avoid this problem. Only use if you are confident in the result. Whitespace is
Expand All @@ -106,7 +106,7 @@

parser.add_argument('-k', '--keep-pre-attr',
help=(
'''HTMLMin supports the propietary attribute 'pre' that can be added to elements
'''HTMLMin supports the proprietary attribute 'pre' that can be added to elements
to prevent minification. This attribute is removed by default. Set this flag to
keep the 'pre' attributes in place.

Expand All @@ -128,7 +128,7 @@
help=(
'''By default, the contents of 'pre', and 'textarea' tags are left unminified.
You can specify different tags using the --pre-tags option. 'script' and 'style'
tags are always left unmininfied.
tags are always left unminified.

'''),
nargs='*',
Expand Down