Skip to content
Permalink
Browse files

flake8

  • Loading branch information
ralsina committed Jun 5, 2015
1 parent 1f6f571 commit 3469045475bcaee6bc698e4134f03f66ff43fd0e
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 3469045

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