Changeset 134

Show
Ignore:
Timestamp:
04/04/2007 00:30:19 (20 months ago)
Author:
why
Message:
  • lib/hpricot/inspect.rb: pretty printing of empty attributes.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/lib/hpricot/inspect.rb

    r130 r134  
    6464          @raw_attributes.each {|n, t| 
    6565            q.breakable 
    66             q.text "#{n}=\"#{Hpricot.uxs(t)}\"" 
     66            if t 
     67              q.text "#{n}=\"#{Hpricot.uxs(t)}\"" 
     68            else 
     69              q.text n 
     70            end 
    6771          } 
    6872        end