Skip to content

Commit

Permalink
Use places_are_the_same and conjunction
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Apr 22, 2024
1 parent 55923c4 commit 69261aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -4772,7 +4772,7 @@ sub print_person
}
my $this_date = year({ person => $person, date => $rdate });
if($prev_residence && (year(record => $prev_residence) eq $this_date)) {
if(place(record => $prev_residence) ne place(record => $residence)) {
if(!places_are_the_same({ person => $person, first => $prev_residence, second => $residence })) {
complain({ person => $person, warning => "Two residence records for $rdate differ in location" });
}
} else {
Expand All @@ -4784,11 +4784,10 @@ sub print_person
} elsif((!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";
}
$residencestring = conjunction($p, $this_date);
# We could just added a comma after a sibling's name
$residencestring =~ s/,,/,/g;
} else {
Expand Down

0 comments on commit 69261aa

Please sign in to comment.