Kronuz / pyScss

pyScss, a Scss compiler for Python
MIT License
582 stars 141 forks source link

Single quotations inside function calls are ignored #167

Closed vahdani closed 11 years ago

vahdani commented 11 years ago

pyScss comiles this:

url('../path/to/something')

to this:

url(../path/to/something)

Although this might make final css code smaller but this behavior is not always appropriate. For example when defining a font face:

@font-face {
    font-family: 'MyFont';
    src: local('?'), url('../fonts/MyFont.woff') format('woff'), url('../fonts/MyFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

After compilation:

@font-face {
    font-family: MyFont;
    src: local(?), url(../fonts/MyFont.woff) format(woff), url(../fonts/MyFont.ttf) format(truetype);
    font-weight: normal;
    font-style: normal;
}

Which breaks the font face because of this statement:

local(?)

I know that using double quotations instead of single quotations fixes this. but single quotations work fine with the standard ruby-based scss compiler. (I have a bunch of scss files that were ok with the ruby-based compiler and know pyScss kinda breaks them)

eevee commented 11 years ago

Sorry about this! It's known and is #50.