Changeset 239

Show
Ignore:
Timestamp:
02/21/2008 15:40:59 (9 months ago)
Author:
jgarber
Message:

Fix handling of extra whitespace (#34) [zak]

Location:
branches/superredcloth
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • branches/superredcloth/ext/superredcloth_scan/superredcloth_scan.rl

    r238 r239  
    3232  block_start = ( btype >A %{ STORE(type) } A C :> "." ( "." %extend | "" ) " "+ ) ; 
    3333  next_block_start = ( btype A C :> "." ) ; 
    34   double_return = CRLF{2} ; 
     34  double_return = CRLF{2,} ; 
    3535  block_end = ( double_return | EOF ); 
    3636  extended_block_end = double_return . next_block_start >A @{ p = reg - 1; } ; 
     
    4040  ol = "#" %{nest++; list_type = "ol";}; 
    4141  list_start  = ( ( ul | ol )+ N A C :> " "+ ) >{nest = 0;} ; 
     42  blank_line = CRLF; 
    4243   
    4344  # html blocks 
     
    120121    list_start      { list_layout = rb_ary_new(); LIST_ITEM(); fgoto list; }; 
    121122    table           { INLINE(table, table_close); DONE(table); fgoto block; }; 
     123    blank_line => cat; 
    122124    default 
    123125    {