Changeset 1120

Show
Ignore:
Timestamp:
2008-07-25 10:01:07 (6 months ago)
Author:
gaspard
Message:

Small change to further fix DOM problems.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/parser/lib/rules/zena.rb

    r1119 r1120  
    23762376     
    23772377    def context_name 
    2378       return (@name || @context[:name] || 'list') if @context 
    2379       @name || @params[:id] || (parent ? parent.context_name : 'root') 
     2378      @name || if @context 
     2379        @context[:name] || 'list' 
     2380      elsif parent 
     2381        parent.context_name 
     2382      else 
     2383        'root' 
     2384      end 
    23802385    end 
    23812386