[Templates-cvs] cvs commit: TT3/lib/Template/TT3/Tag Directive.pm

cvs@template-toolkit.org cvs@template-toolkit.org
Thu, 11 Dec 2003 17:41:03 +0000


cvs         03/12/11 17:41:02

  Modified:    lib/Template/TT3/Tag Directive.pm
  Log:
  * added = collapse chomp flag to test for closing flag
  
  Revision  Changes    Path
  1.2       +2 -2      TT3/lib/Template/TT3/Tag/Directive.pm
  
  Index: Directive.pm
  ===================================================================
  RCS file: /template-toolkit/TT3/lib/Template/TT3/Tag/Directive.pm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Directive.pm	2003/12/11 17:26:20	1.1
  +++ Directive.pm	2003/12/11 17:41:02	1.2
  @@ -17,7 +17,7 @@
   #   modify it under the same terms as Perl itself.
   #
   # REVISION
  -#   $Id: Directive.pm,v 1.1 2003/12/11 17:26:20 abw Exp $
  +#   $Id: Directive.pm,v 1.2 2003/12/11 17:41:02 abw Exp $
   #
   #========================================================================
   
  @@ -30,7 +30,7 @@
   use vars qw( $VERSION $DEBUG $ERROR $WARNING $TAG );
   use base qw( Template::TT3::Tag );
   
  -$VERSION = sprintf("%d.%02d", q$Revision: 1.1 $ =~ /(\d+)\.(\d+)/);
  +$VERSION = sprintf("%d.%02d", q$Revision: 1.2 $ =~ /(\d+)\.(\d+)/);
   $DEBUG   = 0 unless defined $DEBUG;
   $ERROR   = '';
   $TAG     = {
  @@ -69,7 +69,7 @@
       }
   
       # check for closing chomp flag and remove trailing whitespace 
  -    $$textref =~ s/ \s* ([-+])? $ //sx;
  +    $$textref =~ s/ \s* ([-=+])? $ //sx;
       $flag = $1 || '';
   
       # - - - - - - - - - - - - - - - - - - - - - - - - - -   
  @@ -124,7 +124,7 @@
   
   =head1 VERSION
   
  -$Revision: 1.1 $
  +$Revision: 1.2 $
   
   =head1 COPYRIGHT