Ignore:
Timestamp:
11/28/08 13:33:03 (3 years ago)
Author:
CrawfordCurrie
Message:

Item175: Added Foswiki::Time to published APIs and deprecated the duplicates in Foswiki::Func, cleaned up versioning of published APIs and added VERSION to each. Item295: changed =pod to =begin TML

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerlDocPlugin/lib/TWiki/Plugins/PerlDocPlugin.pm

    r1039 r1041  
    3939# variables elsewhere in TWiki!! 
    4040 
    41 =begin TML 
     41=begin twiki 
     42 
    4243---+ Testing TWiki formatting 
    4344| *simple* | *table* | 
     
    5455Last paragraph of this document block 
    5556 
    56 =end TML 
     57=end twiki 
    5758 
    5859=cut 
     
    127128    } 
    128129 
    129     if( $format =~ /(pod|twiki|raw)/ ) { 
     130    if( $format =~ /(pod|twiki|raw|TML)/ ) { 
    130131        $text =~ s/&/&amp\;/go; 
    131132        $text =~ s/</&lt\;/go; 
     
    171172                $mode = "twiki"; 
    172173            } elsif( $tag =~ /^begin$/i ) { 
    173                 if( $data =~ /^(html|twiki)/i ) { 
     174                if( $data =~ /^(html|twiki|TML)/i ) { 
    174175                    $data =~ s@([\r\n])( +)@"$1" . "\t" x (length($2)/3)@ges; 
    175176                    $data =~ s/^(html|twiki)//i; 
     
    184185                $text .= "---" . "+" x $1 . renderInteriorSequences( " $data" ) . "\n"; 
    185186            } elsif( $tag =~ /^for$/i ) { 
    186                 if( $data =~ /^(html|twiki)/i ) { 
     187                if( $data =~ /^(html|twiki|TML)/i ) { 
    187188                    $data =~ s@([\r\n])( +)@"$1" . "\t" x (length($2)/3)@ges; 
    188189                    $data =~ s/^(html|twiki)\s*//i; 
     
    200201                $text .= renderInteriorSequences( "$_" ) . "\n\n"; 
    201202            } 
    202         } elsif( $mode eq "twiki" ) { 
     203        } elsif( $mode eq "twiki" || $mode eq 'TML' ) { 
    203204            if( $tag =~ /^end$/i ) { 
    204205                $mode = ""; 
Note: See TracChangeset for help on using the changeset viewer.