Skip to content

Commit

Permalink
Improved handling of "She and married" - #119
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Jun 10, 2024
1 parent f62674e commit 5601189
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -3780,10 +3780,12 @@ sub print_person

if(scalar(@spouses) == 1) {
if(!$printed_and) {
$bio .= i18n(' and');
$bio .= i18n(' and') if(!$end_of_sentence);
$printed_and = 1;
$end_of_sentence = 0;
}
if($phrase->length() && (scalar(@phrases) > 0)) {
if(($phrase->length() > 3) && (scalar(@phrases) > 0)) {
# Don't create a new phrase if it's just the pronoun
push @phrases, $phrase;
$phrase = Data::Text->new();
}
Expand Down

0 comments on commit 5601189

Please sign in to comment.