Skip to content
Permalink
Browse files

Merge branch 'master' into refactor-galleries-gain

  • Loading branch information
ralsina committed Jun 5, 2015
2 parents 64e4a92 + 3469045 commit 8970ce9172a27168591a1dab732863b112ab4d4f
Showing with 3 additions and 0 deletions.
  1. +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

0 comments on commit 8970ce9

Please sign in to comment.
You can’t perform that action at this time.