Skip to content

Commit

Permalink
Improved handling of date ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Mar 4, 2020
1 parent 3c707cf commit 01d10f0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions gedcom
Expand Up @@ -2007,6 +2007,13 @@ sub print_person
if((!$placeofmarriage) && $marriage) {
$placeofmarriage = $marriage->place();
}
if($placeofmarriage && ($placeofmarriage =~ /.+,\s?(.+)$/)) {
my $c = $1;
if($c eq 'Scot') {
complain({ person => $person, warning => "$c: marriage country should be Scotland'" });
$placeofmarriage .= 'land';
}
}

my $burial;
my $dateofburial;
Expand Down Expand Up @@ -2597,6 +2604,9 @@ sub print_person
date => $dateofbirth,
must_predate => $death_dt
});
if($y =~ /^from (.+) to (.)/i) {
$y = "between $1 and $2";
}
$bio .= " $y" if($y);
}
$bio .= "[$_]" foreach(@birthcitations);
Expand Down

0 comments on commit 01d10f0

Please sign in to comment.