On Jan 25, 5:47 pm, "WebSpin.Biz" <[email protected]> wrote:
> I'm running compress.rb on a WindowsXP machine with ruby installed via
> rubyinstaller.  I've created a custom settings.yml file and running
> compres.rb and getting the following results, as can be seen, the css
> rules are getting completely mucked up by being wrapped in square
> brackets and quotes with commas separating them.

I have just run across this problem myself and since you haven't had a
reply, I looked into it.

>         # set the semantic class to the rules gathered in classes,
> sorted by index
>         # this way, the styles will be applied in the correct order
> from top of file to bottom
>         output_css[semantic_class] = "#{classes.sort_by {|i| i
> [:idx]}.map {|i| i[:rules]}}"

The problem lies here, where the array of rules gets pretty-printed.
Changing line 46 to

        output_css[semantic_class] = classes.sort_by {|i| i[:idx]}.map
{|i| i[:rules]}.join

correctly concatenates the rules as bare strings.

Hope this helps.

-- 
You received this message because you are subscribed to the Google Groups 
"Blueprint CSS" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/blueprintcss?hl=en.

Reply via email to