fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of git@github.com:fnp/wolnelektury
[wolnelektury.git]
/
apps
/
compress
/
filters
/
csstidy_python
/
__init__.py
diff --git
a/apps/compress/filters/csstidy_python/__init__.py
b/apps/compress/filters/csstidy_python/__init__.py
index
7d581ed
..
03a4ac0
100644
(file)
--- a/
apps/compress/filters/csstidy_python/__init__.py
+++ b/
apps/compress/filters/csstidy_python/__init__.py
@@
-8,12
+8,12
@@
COMPRESS_CSSTIDY_SETTINGS = getattr(settings, 'COMPRESS_CSSTIDY_SETTINGS', {})
class CSSTidyFilter(FilterBase):
def filter_css(self, css):
tidy = CSSTidy()
-
+
for k, v in COMPRESS_CSSTIDY_SETTINGS.items():
tidy.setSetting(k, v)
tidy.parse(css)
r = tidy.Output('string')
-
+
return r