Changeset 623

Show
Ignore:
Timestamp:
2007-06-11 16:21:03 (2 years ago)
Author:
gaspard
Message:

r397@bison: gaspard | 2007-06-08 17:42:28 +0200
simple try to fix zazenblockat bug

Files:

Legend:

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

    r617 r623  
    140140     
    141141    def extract_code(text) 
    142       @escaped_at = [] 
    143       block_counter = -1 
    144       text.gsub!( /(\A|[^\w])@(.*?)@(\Z|[^\w])/m ) do 
    145         @escaped_at << $2 
    146         block_counter += 1 
    147         "#{$1}\\ZAZENBLOCKAT#{block_counter}ZAZENBLOCKAT\\#{$3}" 
    148       end 
    149    
    150142      @escaped_code = [] 
    151143      block_counter = -1 
     
    167159        "<pre#{divparams.join(' ')}>\\ZAZENBLOCKCODE#{block_counter}ZAZENBLOCKCODE\\</pre>" 
    168160      end 
     161     
     162      @escaped_at = [] 
     163      block_counter = -1 
     164      text.gsub!( /(\A|[^\w])@(.*?)@(\Z|[^\w])/m ) do 
     165        @escaped_at << $2 
     166        block_counter += 1 
     167        "#{$1}\\ZAZENBLOCKAT#{block_counter}ZAZENBLOCKAT\\#{$3}" 
     168      end 
     169 
    169170    end 
    170171     
  • trunk/lib/parser/test/zafu.yml

    r617 r623  
    287287    [/test]ok 
    288288 
    289  
    290289default_tag: 
    291290  src: "<r:void class='test'>blah</r:void>"