Skip to content
Permalink
Browse files

Fix #1497

  • Loading branch information
ralsina committed Jan 13, 2015
1 parent 70d10d6 commit f085ddb2b60351d5b9fb4dcfc7be5fb555a5f61e
Showing with 3 additions and 4 deletions.
  1. +1 −0 CHANGES.txt
  2. +1 −1 docs/manual.txt
  3. +1 −3 nikola/filters.py
@@ -63,6 +63,7 @@ Features
Bugfixes
--------

* Turned minify_lines into a no-op (Issue #1497)
* Don’t classify unpublished posts as pages (Issue #1577)
* Fixed a ``TranslatableSetting.langformat`` race condition
* Fixed ``TranslatableSetting`` instantiation in
@@ -1319,7 +1319,7 @@ The currently available filters are:
}

minify_lines
Strips leading whitespace and blank lines. Useful for compacting HTML but pre-formatted text must be escaped manually.
**THIS FILTER HAS BEEN TURNED INTO A NOOP** and currently does nothing.

yui_compressor
Compress CSS/JavaScript using `YUI compressor <http://yui.github.io/yuicompressor/>`_
@@ -149,9 +149,7 @@ def jpegoptim(infile):

@apply_to_text_file
def minify_lines(data):
datalines = data.splitlines()
datalines = [line.lstrip() for line in datalines if not (line.strip() == "")]
return "\n".join(datalines)
return data;

This comment has been minimized.

Copy link
@Kwpolska

Kwpolska Jan 13, 2015

Member

destroy this semicolon and add a logger warning if possible

This comment has been minimized.

Copy link
@ralsina

ralsina Jan 13, 2015

Author Member

Logging from a filter looks rather impossible.



@apply_to_text_file

0 comments on commit f085ddb

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