klen / python-scss

Python scss parser.
http://packages.python.org/scss/
GNU Lesser General Public License v3.0
67 stars 12 forks source link

Space inserted before pseudo-selector #2

Closed wwight closed 13 years ago

wwight commented 13 years ago

I'm using scss 0.4.2.

calling parser.parse('.foo:hover { color:#fff; }') returns: '.foo :hover {\n\tcolor: #fff}'

Parsing inserts a space between the .foo class and the :hover pseudo-class. Since .foo:hover and .foo :hover are logically different in CSS, this seems like a problem with the parser. Google hasn't yielded a good workaround for this problem, though using &:hover with nesting works in cases where nesting makes sense.

Keep up the good work!

klen commented 13 years ago

Fixed in version 0.4.4, thanks!

wwight commented 13 years ago

Works great, thanks a lot.