Ignore:
Timestamp:
2011-03-18T10:27:48+01:00 (15 years ago)
Author:
stoecker
Message:

fix wms and validator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/i18n/convwms.pl

    r23091 r25613  
    55
    66use strict;
     7use LWP::Simple;
    78
    89my $item;
     
    1617print "class trans_wms { void tr(String s){} void f() {";
    1718
    18 while(my $line = <>)
     19my @lines;
     20if($ARGV[0] && $ARGV[0] =~ /^http:\/\//)
    1921{
     22  @lines = split("\r?\n", get($ARGV[0]));
     23}
     24else
     25{
     26  @lines = <>;
     27}
     28
     29for my $line (@lines)
     30{
     31  $line =~ s/\r//g;
    2032  chomp($line);
    2133  if($line =~ /^#(.*)$/)
Note: See TracChangeset for help on using the changeset viewer.