Skip to content

Commit

Permalink
Merge pull request #1675 from ikedas/sympa_config by ikedas
Browse files Browse the repository at this point in the history
Broken links in sympa_config.pod
  • Loading branch information
ikedas authored Jun 13, 2023
2 parents 4bb902f + 13a5bc4 commit 9bd1a14
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions doc/sympa_config.podpl
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ sub _render_paragraph {
#$parameters .= "=over\n\n" x (scalar @$pnames);

if ($pii->{obsolete}) {
_render_obsolete($pii);
_render_obsolete($pii, $ppi);
} elsif ($pii->{occurrence} =~ /n$/ and ref $pii->{format} eq 'ARRAY')
{
_render_set($pii, $ppi);
Expand Down Expand Up @@ -213,14 +213,17 @@ sub _render_scalar {

sub _render_obsolete {
my $pii = shift;
my $ppi = shift;

return unless $pii->{obsolete};

if ($pii->{obsolete} eq '1') {
$parameters .= "Deprecated.\n\n";
} else {
$parameters .= sprintf "See L<C<%s>|/%s>.\n\n",
$pii->{obsolete}, $pii->{obsolete};
my @parag = @$ppi;
pop @parag;
my $param = join '.', @parag, $pii->{obsolete};
$parameters .= sprintf "See L<C<%s>|/%s>.\n\n", $param, $param;
}
$parameters .= "=over\n\n";
_context($pii);
Expand Down

0 comments on commit 9bd1a14

Please sign in to comment.