Closed bjornpost closed 13 years ago
Cheers. As that CSS doesn't come with a encoding declared I guess you'll have to assume it's UTF-8.
Bug fixed. Please see https://github.com/peterbe/django-static/commit/0cc1ce2ffc1661377d5cd957d6c4048989d5b5f7 Unfortunately this commit diff also shows some of the line ending space trimmings I've configured my editor to do these days.
Nice, thank you. I've found another bug, regarding your CSS url() regexp. You're matching against every url(), but that gives me some weird results (I'm using inline data). So instead I guess you want to match against something like this:
url\((?!data:)([^\)])+\)
Which matches url('somefile.jpg')
but ignores inline data, which looks like url(data:...)
. I didn't test the regexp, but I think it should work ok.
Would you mind making a fork that I can pull and run tests against?
Sure thing, I'll send a pull request when I have it working :).
Hi, just got this error:
Caught UnicodeDecodeError while rendering: ('ascii', ";src:local('\xe2\x98\xba'),", 12, 13, 'ordinal not in range(128)')
Here's the full traceback:
I guess it has something to do with the following lines in my CSS (especially the 'smiley' char):
Which is a common technique for embedding webfonts.