Skip to content

Commit

Permalink
Fix #1497
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Jan 13, 2015
1 parent 70d10d6 commit f085ddb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/manual.txt
Expand Up @@ -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/>`_
Expand Down
4 changes: 1 addition & 3 deletions nikola/filters.py
Expand Up @@ -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
Expand Down

0 comments on commit f085ddb

Please sign in to comment.