Skip to content

Commit

Permalink
Don't print AKA information twice
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Nov 14, 2023
1 parent 1f4bf2d commit e1b6299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -2842,10 +2842,10 @@ sub print_person
} else {
if(scalar(@phrases) == 0) {
$phrase->set(ucfirst($noun));
$noun = $pronoun;
if(my $aka = $person->as_string({ use_aka => 1 })) {
if(($noun eq $firstname) && (my $aka = $person->as_string({ use_aka => 1 }))) {
$phrase->append(", also known as $aka,");
}
$noun = $pronoun;
}
if(is_alive(person => $person)) {
$phrase->append(' is ');
Expand Down

0 comments on commit e1b6299

Please sign in to comment.