Skip to content

Commit

Permalink
Avoid consecutive commas after a person is recorded as living with a …
Browse files Browse the repository at this point in the history
…sibling
  • Loading branch information
nigelhorne committed Nov 21, 2023
1 parent e1b6299 commit 959aa35
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -4732,18 +4732,18 @@ sub print_person
$residencestring .= $rdate;
# $print_year_only = 0;
}
} else {
if((!defined($residencestring)) && (my $p = pop(@residencestringarray))) {
if($language eq 'French') {
$p =~ s/ et /, /g;
$residencestring = "$p et $this_date";
} else {
$p =~ s/ and /, /g;
$residencestring = "$p and $this_date";
}
} elsif((!defined($residencestring)) && (my $p = pop(@residencestringarray))) {
if($language eq 'French') {
$p =~ s/ et /, /g;
$residencestring = "$p et $this_date";
} else {
$residencestring .= " $this_date";
$p =~ s/ and /, /g;
$residencestring = "$p and $this_date";
}
# We could just added a comma after a sibling's name
$residencestring =~ s/,,/,/g;
} else {
$residencestring .= " $this_date";
}
$prev_residence = $residence;
}
Expand Down

0 comments on commit 959aa35

Please sign in to comment.