Python version of mapconvert now passes regression...

...on every UMC file that the Perl version doesn't barf on.
This commit is contained in:
Eric S. Raymond 2007-04-24 13:26:07 +00:00
parent 79e30c12b3
commit d5f40ca58a
2 changed files with 5 additions and 2 deletions

View file

@ -194,6 +194,9 @@ while($#mfile){
$cont=0;
($line,$dummy)=split('"',$line);
}
if (!$line=~/\n/){
$line.="\n"
}
if(defined($line) && length($line)){push(@map,$line)};
}

View file

@ -159,8 +159,8 @@ while mfile:
if '"' in line:
cont = False
line = line.split('"')[0]
if line and not line.endswith("\n"):
line += "\n"
if line and not line.endswith("\n"):
line += "\n"
if line:
outmap.append(line)
if not map_only: