Changeset 4069


Ignore:
Timestamp:
2003-04-01T16:19:10+12:00 (21 years ago)
Author:
mdewsnip
Message:

Blank line is no longer produced at the end of languages.log.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/picklanguage.pl

    r4068 r4069  
    8282
    8383    my $l;
     84    my $first = 1;
    8485    foreach $l ( @lang_list ) {
    8586        my $long = lc($l->{'long'});
    8687        my $abbr = $l->{'abbr'};
    87         print LANGFILE "$long\n$abbr\n";
     88        if ($first =~ 1) {
     89        print LANGFILE "$long\n$abbr";
     90        $first = 0;
     91        }
     92        else {
     93        print LANGFILE "\n$long\n$abbr";
     94        }
    8895    }
    8996    close LANGFILE;
Note: See TracChangeset for help on using the changeset viewer.