Skip to content

Commit

Permalink
New point release. Update documentation. Fixes #7.
Browse files Browse the repository at this point in the history
  • Loading branch information
mankyd committed Mar 4, 2014
1 parent 3f20cad commit bd4fd56
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ specified, it reads form ``stdin``. Help with options can be retrieved at
any time by running `htmlmin -h`::

htmlmin -h
usage: htmlmin [-h] [-c] [-s] [--remove-all-empty-space] [-H] [-k] [-p [TAG [TAG ...]]] [-e ENCODING]
usage: htmlmin [-h] [-c] [-s] [--remove-all-empty-space]
[--keep-optional-attribute-quotes] [-H] [-k] [-a PRE_ATTR]
[-p [TAG [TAG ...]]] [-e ENCODING]
[INPUT] [OUTPUT]

Minify HTML
Expand Down Expand Up @@ -85,6 +87,9 @@ any time by running `htmlmin -h`::
avoid this problem. Only use if you are confident in the result. Whitespace is
not removed from inside of tags, thus '<span> </span>' will be left alone.

--keep-optional-attribute-quotes
When set, this keeps all attribute quotes, even if they are optional.

-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.

Expand Down
2 changes: 1 addition & 1 deletion htmlmin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@

from .main import minify, Minifier

__version__ = '0.1.4'
__version__ = '0.1.5'
3 changes: 3 additions & 0 deletions htmlmin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ def minify(input,
attributes such as 'disabled' and 'readonly' will have their value removed,
so 'disabled="true"' will simply become 'disabled'. This is generally a
good option to turn on except when JavaScript relies on the values.
:param remove_optional_attribute_quotes: When True, optional quotes around
attributes are removed. When False, all attribute quotes are left intact.
Defaults to True.
:param keep_pre: By default, htmlmin uses the special attribute ``pre`` to
allow you to demarcate areas of HTML that should not be minified. It removes
this attribute as it finds it. Setting this value to ``True`` tells htmlmin
Expand Down

0 comments on commit bd4fd56

Please sign in to comment.