Skip to content

Commit

Permalink
Merge branch 'master' into refactor-galleries-gain
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jun 5, 2015
2 parents 64e4a92 + 3469045 commit 8970ce9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nikola/filters.py
Expand Up @@ -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")

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8970ce9

Please sign in to comment.