IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 3, 2006, 3:25:05 PM (20 years ago)
Author:
jhoblitt
Message:

fix the trailing white space left in string values when followed by a comment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/PS-IPP-Metadata-Config/config_grammar.txt

    r8940 r9162  
    11# Copyright (c) 2005  Joshua Hoblitt
    22#
    3 # $Id: config_grammar.txt,v 1.3 2006-09-25 21:49:42 jhoblitt Exp $
     3# $Id: config_grammar.txt,v 1.4 2006-10-04 01:25:05 jhoblitt Exp $
    44
    55{
     
    314314string:
    315315    /(?:\S[^#\n]*)?[^#\n ]/
     316        # trim tailing the trailing white that's left when the string is
     317        # followed by a comment (#)
     318        {
     319            $item[1] =~ s/\s*$//;
     320            $return = $item[1];
     321        }
    316322
    317323word:
Note: See TracChangeset for help on using the changeset viewer.