Skip to content

Commit 7c76b2c

Browse files
committed
preserve_exclamation_comments documented in method docstrings
1 parent dcf1736 commit 7c76b2c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

csscompressor/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,12 @@ def compress(css, max_linelen=0, preserve_exclamation_comments=True):
468468
than, say 8000 characters, are checked in. This option is used in
469469
that case to split long lines after a specific column.
470470
471+
- preserve_exclamation_comments : boolean = True
472+
Some stylesheets contain /*! ... */ comment block which used for copyright
473+
notices or else. By default compress dont remove them like other comment
474+
blocks. It will lead to bigger file size. but once you decide to remove
475+
them just set this parameter to False.
476+
471477
Returns a ``str`` object with compressed CSS.
472478
"""
473479

@@ -494,6 +500,10 @@ def compress_partitioned(css,
494500
a list of ``str`` objects, each limited to contain less than the passed number
495501
of rules.
496502
503+
- preserve_exclamation_comments : boolean = True
504+
Has the same meaning as for "compress()" function.
505+
506+
497507
Always returns a ``list`` of ``str`` objects with compressed CSS.
498508
"""
499509

0 commit comments

Comments
 (0)