Applied. Thanks!

Dylan Bruzenak wrote:
> http://pastie.caboo.se/109396
>
>
>
> On Oct 21, 1:31 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
>   
>> Could you pastie that? Google Groups wraps the lines and makes it
>> awkward to apply.
>>
>> - Nathan
>>
>> Dylan Bruzenak wrote:
>>     
>>> For some reason I completely missed the 'development' page on the haml
>>> site explaining this; I'm going to take the easy out and blame my
>>> cold.
>>>       
>>> Here is a patch:
>>>       
>>> Index: test/haml/engine_test.rb
>>> ===================================================================
>>> --- test/haml/engine_test.rb       (revision 606)
>>> +++ test/haml/engine_test.rb       (working copy)
>>> @@ -190,7 +190,7 @@
>>>               "a\n%p~\nb", "a\n~\nb", "a\n~\n  b", "%p~\n  b", "%p/\n
>>> a",
>>>               "%p\n \t%a b", "%a\n b\nc", "%a\n    b\nc",
>>>               ":notafilter\n  This isn't\n  a filter!",
>>> -             ".{} a", "\#{} a", ".= 'foo'", "%a/ b" ]
>>> +             ".{} a", "\#{} a", ".= 'foo'", "%a/ b", "%p..class" ]
>>>      errs.each do |err|
>>>        begin
>>>          render(err)
>>> Index: lib/haml/engine.rb
>>> ===================================================================
>>> --- lib/haml/engine.rb     (revision 606)
>>> +++ lib/haml/engine.rb     (working copy)
>>> @@ -726,7 +726,7 @@
>>>          attributes_hash = "{nil}" if attributes_hash.nil? ||
>>> literal_attributes || @options[:suppress_eval]
>>>          object_ref = "nil" if object_ref.nil? ||
>>> @options[:suppress_eval]
>>>       
>>> -        if !attributes.empty? && '.#'.include?(attributes)
>>> +        if !attributes.empty? && (attributes.length == 1 ||
>>> attributes =~ /[.#][.#\{]/)
>>>            raise SyntaxError.new("Illegal element: classes and ids
>>> must have values. Use %div instead.")
>>>          end
>>>       
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" 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/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to