Skip to content

Commit

Permalink
Remove superfluous comma
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Oct 22, 2024
1 parent e314ced commit d9a1dcf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
14 changes: 4 additions & 10 deletions ged2site
Original file line number Diff line number Diff line change
Expand Up @@ -3213,7 +3213,6 @@ sub print_person
print $html wide_to_html({ string => $phrase, keep_hrefs => 1 });
# $bio =~ s/é/é/g;

$bio = ', ';
$fullbio = $phrase->as_string();

if($opts{'l'} || !$is_alive) {
Expand Down Expand Up @@ -3808,7 +3807,7 @@ sub print_person
}
}
} elsif($dateofbaptism || $placeofbaptism) {
die; # I don't this code can be reached
die; # I don't this code can be reached
if($language eq 'French') {
if($placeofbaptism && $placeofbirth && ($placeofbaptism eq $placeofbirth)) {
$bio .= " $pronoun y a \N{U+00E9}t\N{U+00E9} "; # a été
Expand Down Expand Up @@ -15025,16 +15024,11 @@ sub twins

sub person_in_residence_record
{
my $params = get_params(undef, @_);
my %params;

if(ref($_[0]) eq 'HASH') {
%params = %{$_[0]};
} elsif(scalar(@_) % 2 == 0) {
%params = @_;
}

my $person = $params{'person'};
my $date = $params{'date'};
my $person = $params->{'person'};
my $date = $params->{'date'};

foreach my $event(get_all_residences($person)) {
my $edate = $event->date();
Expand Down
1 change: 1 addition & 0 deletions tests/extraspace
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
grep -l ' ' static-site/*.html
fgrep -l ', .' static-site/*.html

0 comments on commit d9a1dcf

Please sign in to comment.