[BACK]Return to text.pm CVS log [TXT][DIR] Up to [local] / todotxt / Text-Todo-REST-API / lib / Text / Todo / REST / API / Representations

Diff for /todotxt/Text-Todo-REST-API/lib/Text/Todo/REST/API/Representations/text.pm between version 1.3 and 1.5

version 1.3, 2010/01/23 07:04:43 version 1.5, 2010/02/13 21:46:59
Line 1 
Line 1 
 package Text::Todo::REST::API::Representations::text;  package Text::Todo::REST::API::Representations::text;
   
 # $AFresh1: text.pm,v 1.2 2010/01/19 03:18:34 andrew Exp $  # $AFresh1: text.pm,v 1.4 2010/01/26 06:03:11 andrew Exp $
   
 use base 'Text::Todo::REST::API::Representations';  use base 'Text::Todo::REST::API::Representations';
   
Line 31 
Line 31 
         $data ||= [];          $data ||= [];
   
         my $output;          my $output;
         foreach my $line (@{ $data }) {          foreach my $line ( @{$data} ) {
             $output .= "$line\n";              $output .= "$line\n";
         }          }
         return $output;          return $output;
     }      }
   
       sub render_tags { return render_files(@_) }
   
     sub render_list {      sub render_list {
         my ( $self, $format, $input ) = @_;          my ( $self, $format, $input ) = @_;
   
         return if ! defined $input;          return if !defined $input;
   
         my @input = $input;          my @input = $input;
         if (ref $input eq 'ARRAY') {          if ( ref $input eq 'ARRAY' ) {
             @input = @{ $input };              @input = @{$input};
         }          }
   
         my $output;          my $output;

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>