Development

Changeset 5837

You must first sign up to be able to contribute.

Changeset 5837

Show
Ignore:
Timestamp:
11/04/07 14:16:36 (1 year ago)
Author:
kupokomapa
Message:

[sfHamlViewPlugin] Fixed some problems with whitespaces.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfHamlViewPlugin/branches/1.0/lib/HamlParser.class.php

    r5834 r5837  
    598598    $patterns = array( 
    599599      '/(\]\]\>)?\s*\<\/php\>\s*\<php type\=\"(instruction|echo)\"\>\s*(\<\!\[CDATA\[)?/i', 
    600       '/\<php type\=\"(instruction|echo)\"\>\s*(\<\!\[CDATA\[)?/i', '/(\]\]\>)?\s*\<\/php\>/i', 
     600      '/([ ]+)?\<php type\=\"(instruction|echo)\"\>\s*(\<\!\[CDATA\[)?/i', '/\s*(\]\]\>)?\s*\<\/php\>/i', 
    601601      '/\[\?php\s/i', '/\?\]/i', 
    602602      '/\<(.*)\>\s*\<\!\[CDATA\[(.*)\]\]\>\s*\<\/(.*)\>/i', 
  • plugins/sfHamlViewPlugin/branches/1.0/tests/data/example2.haml

    r5827 r5837  
    77    - else 
    88      %title= $pagename 
     9    - endif 
    910  %body 
    1011    #header 
    1112      %h1 Example page 
    12       - if ($slogan) 
    13         %span= $slogan 
    14         = sprintf( 
    15             'Help me', 
    16             $symfony->help() 
    17           ) 
     13      %span= ($slogan)?$slogan:'' 
    1814    #content 
    1915      %table.config.list 
     
    2723            %td= $c->name 
    2824            %td= $c->value 
     25        - endforeach 
    2926    #footer 
    3027      %span.author Random Hacker