Skip to content

Commit f085ddb

Browse files
committedJan 13, 2015
Fix #1497
1 parent 70d10d6 commit f085ddb

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed
 

‎CHANGES.txt

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ Features
6363
Bugfixes
6464
--------
6565

66+
* Turned minify_lines into a no-op (Issue #1497)
6667
* Don’t classify unpublished posts as pages (Issue #1577)
6768
* Fixed a ``TranslatableSetting.langformat`` race condition
6869
* Fixed ``TranslatableSetting`` instantiation in

‎docs/manual.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ The currently available filters are:
13191319
}
13201320

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

13241324
yui_compressor
13251325
Compress CSS/JavaScript using `YUI compressor <http://yui.github.io/yuicompressor/>`_

‎nikola/filters.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,7 @@ def jpegoptim(infile):
149149

150150
@apply_to_text_file
151151
def minify_lines(data):
152-
datalines = data.splitlines()
153-
datalines = [line.lstrip() for line in datalines if not (line.strip() == "")]
154-
return "\n".join(datalines)
152+
return data;
Has conversations. Original line has conversations.
155153

156154

157155
@apply_to_text_file

0 commit comments

Comments
 (0)
Please sign in to comment.