Skip to content

Commit

Permalink
Don't say twice that someone was in the Navy
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 25, 2024
1 parent 39cf6b5 commit bc34e74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -6253,7 +6253,7 @@ sub print_person
$phrase->append(' ' . ucfirst($event) . '. ');
}
}
if(ref($event) eq 'Gedcom::Record') {
if($event->can('type')) {
my $type = $event->type();
print "Event type: $type\n" if($opts{'v'});
if($type eq 'Military service') {
Expand Down Expand Up @@ -6295,7 +6295,9 @@ sub print_person
$mentioned_military = 1;
}

append_notes({ phrase => $phrase, record => $event });
if((!$mentioned_military) || (notes(record => $event) ne 'Royal Navy.')) {
append_notes({ phrase => $phrase, record => $event });
}
push @phrases, $phrase;
$phrase = Data::Text->new();
} elsif($type eq 'Arrival') {
Expand Down

0 comments on commit bc34e74

Please sign in to comment.