Changeset 233

Show
Ignore:
Timestamp:
02/12/2008 09:19:33 (9 months ago)
Author:
jgarber
Message:

Lines beginning with space are ignored per Textile 2.

Location:
branches/superredcloth
Files:
2 modified

Legend:

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

    r224 r233  
    2626  notextile_start = "<notextile>" ; 
    2727  notextile_end = "</notextile>" ; 
     28  notextile_line = " " (( default+ ) -- CRLF) CRLF ; 
    2829  pre_start = "<pre" [^>]* ">" (space* "<code>")? ; 
    2930  pre_end = ("</code>" space*)? "</pre>" ; 
     
    9596 
    9697  main := |* 
     98    notextile_line  { CAT(block); DONE(block); }; 
    9799    notextile_start { ASET(type, notextile); fgoto notextile; }; 
    98100    pre_start       { ASET(type, notextile); CAT(block); fgoto pre; }; 
  • branches/superredcloth/test/threshold.yml

    r229 r233  
    436436name: complex xhtml blocks 
    437437desc: Textile can’t always identify the beginning and end of long or complex blocks of XHTML. To prevent Textile from enclosing complex XHTML blocks in paragraph tags, either use a space at the beginning of each line... 
    438 in: |- 
    439    <div> 
    440    <span>My div</span> 
    441    </div> 
    442 out: |- 
    443    <div> 
    444    <span>My div</span> 
    445    </div> 
     438in: " <div>\n <span>My div</span>\n </div>" 
     439out: " <div>\n <span>My div</span>\n </div>" 
    446440--- 
    447441name: complex xhtml blocks 2