From 11c9532cb3ae78026911d413d31efff801edb774 Mon Sep 17 00:00:00 2001 From: Chris Ring Date: Tue, 22 Sep 2020 16:38:34 -0700 Subject: [PATCH] Fix a few doc typos Fixes a few typos found in documentation Signed-off-by: Chris Ring --- docs/quickstart.rst | 8 ++++---- htmlmin/command.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 2b0d647..c551e99 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -78,7 +78,7 @@ any time by running `htmlmin -h`:: put two of them: . -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 'x y' will be left alone, but code such as @@ -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, 'X Y' will become 'XY'. Putting whitespace along with other text will avoid this problem. Only use if you are confident in the result. Whitespace is @@ -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. @@ -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'. diff --git a/htmlmin/command.py b/htmlmin/command.py index ba3a427..e0aa1a9 100755 --- a/htmlmin/command.py +++ b/htmlmin/command.py @@ -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 'x y' will be left alone, but code such as @@ -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, 'X Y' will become 'XY'. Putting whitespace along with other text will avoid this problem. Only use if you are confident in the result. Whitespace is @@ -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. @@ -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='*',