csscompressor
Advanced tools
| Metadata-Version: 1.1 | ||
| Name: csscompressor | ||
| Version: 0.9.2 | ||
| Version: 0.9.3 | ||
| Summary: A python port of YUI CSS Compressor | ||
@@ -5,0 +5,0 @@ Home-page: http://github.com/sprymix/csscompressor |
@@ -14,4 +14,4 @@ ## | ||
| __all__ = ('compress',) | ||
| __version__ = '0.9.2' | ||
| __all__ = ('compress', 'compress_partitioned') | ||
| __version__ = '0.9.3' | ||
@@ -495,2 +495,3 @@ | ||
| css, preserved_tokens = _compress(css, max_linelen=max_linelen) | ||
| css = css.strip() | ||
@@ -497,0 +498,0 @@ bufs = [] |
@@ -111,1 +111,29 @@ ## | ||
| 'c,c3,c4,c5{color:red}', 'd{color:red}'] | ||
| def test_partition_8(self): | ||
| input = ''' | ||
| @media{ | ||
| a {p: 1} | ||
| b {p: 2} | ||
| x {p: 2} | ||
| } | ||
| @media{ | ||
| c {p: 1} | ||
| d {p: 2} | ||
| y {p: 2} | ||
| } | ||
| @media{ | ||
| e {p: 1} | ||
| f {p: 2} | ||
| z {p: 2} | ||
| } | ||
| z {p: 2} | ||
| ''' | ||
| # carefully pick 'max_linelen' to have a trailing '\n' after | ||
| # '_compress' call | ||
| output = compress_partitioned(input, max_rules_per_file=2, max_linelen=6) | ||
| assert output == ['@media{a{p:1}\nb{p:2}x{p:2}\n}', | ||
| '@media{c{p:1}\nd{p:2}y{p:2}\n}', | ||
| '@media{e{p:1}\nf{p:2}z{p:2}\n}', | ||
| 'z{p:2}'] |
+1
-1
| Metadata-Version: 1.1 | ||
| Name: csscompressor | ||
| Version: 0.9.2 | ||
| Version: 0.9.3 | ||
| Summary: A python port of YUI CSS Compressor | ||
@@ -5,0 +5,0 @@ Home-page: http://github.com/sprymix/csscompressor |
+1
-1
| [egg_info] | ||
| tag_build = | ||
| tag_date = 0 | ||
| tag_svn_revision = 0 | ||
| tag_date = 0 | ||
+1
-1
@@ -21,3 +21,3 @@ from setuptools import setup | ||
| name='csscompressor', | ||
| version='0.9.2', | ||
| version='0.9.3', | ||
| url='http://github.com/sprymix/csscompressor', | ||
@@ -24,0 +24,0 @@ license='BSD', |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
625641
0.14%3972
0.68%