Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
3 additions
and
0 deletions .
+3
−0
nikola/filters.py
@@ -146,6 +146,7 @@ def optipng(infile):
def jpegoptim (infile ):
return runinplace (r"jpegoptim -p --strip-all -q %1" , infile )
def html_tidy_nowrap (infile ):
return _html_tidy_runner (infile , r"-quiet --show-info no --show-warnings no -utf8 -indent --indent-attributes no --sort-attributes alpha --wrap 0 --wrap-sections no --tidy-mark no -modify %1" )
@@ -185,6 +186,7 @@ def html5lib_minify(data):
escape_lt_in_attrs = True )
return data
@apply_to_text_file
def html5lib_xmllike (data ):
import html5lib
@@ -198,6 +200,7 @@ def html5lib_xmllike(data):
escape_lt_in_attrs = True )
return data
@apply_to_text_file
def minify_lines (data ):
return data
Toggle all file notes
Toggle all file annotations
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.