Changeset 278 for lang/perl/Text-Nyarlax

Show
Ignore:
Timestamp:
09/25/07 15:38:24 (16 months ago)
Author:
nyarla
Message:

lang/perl/Text-Nyarlax: I implemented parse of the BlockNotes? element on Text::Nyarlax::Parser::PRD.

Location:
lang/perl/Text-Nyarlax/trunk
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Text-Nyarlax/trunk/lib/Text/Nyarlax/Parser/PRD.pm

    r260 r278  
    100100                        |   DefinitionList[ indent => 0 ] 
    101101                        |   BlockQuote 
     102                        |   BlockNotes 
    102103                        |   Paragraph 
    103104 
     
    204205                            $elm->attr->{'title'} = $item{'Text(?)'}->[0] if ( $item{'Text(?)'}->[0] ); 
    205206                            $elm->attr->{'cite'}  = $item{'URI(?)'}->[0]  if ( $item{'URI(?)'}->[0] ); 
     207                            $return = $elm; 
     208                        } 
     209 
     210    BlockNotes          :   /[(]{3}\n/ Content(s) /[)]{3}\n/ 
     211                        { 
     212                            my $elm = element( $item[0] ); 
     213                            $elm->push_content( @{ $item{'Content(s)'} } ); 
     214                            $elm->join_content( element => 'Section' ); 
    206215                            $return = $elm; 
    207216                        }