Skip to content

Commit

Permalink
Start to try appendconjunction()
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jul 9, 2024
1 parent 093bc8e commit e8dbaf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gedcom
Original file line number Diff line number Diff line change
Expand Up @@ -2669,7 +2669,7 @@ sub print_person
}

# my @children = map { $_->children() } $person->fams();
my @children = map { Class::Simple::Readonly::Cached->new({ object => $_, cache => {}, quiet => 1 }) }
my @children = map { Class::Simple::Readonly::Cached->new({ object => $_, cache => {}, quiet => 1 }) }
map { $_->children() } $person->fams();
my $numberofchildren = scalar(@children);

Expand Down Expand Up @@ -2902,7 +2902,7 @@ sub print_person
$phrase = Data::Text->new();
}
if(scalar(@phrases)) {
$bio->append(conjunction(map { $_->as_string() } @phrases))->append('. ');
$bio->appendconjunction(@phrases)->append('. ');
$phrase = Data::Text->new();
@phrases = ();
}
Expand Down Expand Up @@ -3133,7 +3133,7 @@ sub print_person
push @phrases, $phrase;
}
if(scalar(@phrases)) {
$bio->append(conjunction(map { $_->as_string() } @phrases))->append('. ');
$bio->appendconjunction(@phrases)->append('. ');
$phrase = Data::Text->new();
@phrases = ();
}
Expand Down

0 comments on commit e8dbaf5

Please sign in to comment.