Python version of mapconvert now passes regression...
...on every UMC file that the Perl version doesn't barf on.
This commit is contained in:
parent
79e30c12b3
commit
d5f40ca58a
2 changed files with 5 additions and 2 deletions
|
@ -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)};
|
||||
}
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue