1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-30 19:23:04 +03:00

Add text rendering for page links missed in 597739fa.

Since links are not possible in the command line help just display the name of the linked section.

Also, during reference text rendering there is no out key so make sure it is defined before trying to use it.
This commit is contained in:
David Steele
2020-10-05 08:37:48 -04:00
parent 597739fafe
commit 293add28fd
2 changed files with 33 additions and 2 deletions

View File

@ -732,7 +732,8 @@ sub processTag
my $strSection = $oTag->paramGet('section', false);
# If a page/section link points to the current page then remove the page portion
if (defined($strPage) && defined($strSection) && $strPage eq $self->{strRenderOutKey})
if (defined($strPage) && defined($strSection) && defined($self->{strRenderOutKey}) &&
$strPage eq $self->{strRenderOutKey})
{
undef($strPage);
}
@ -821,6 +822,10 @@ sub processTag
$strBuffer = "\\hyperref[$strUrl]{" . $oTag->valueGet() . "}";
}
}
elsif ($strType eq 'text')
{
$strBuffer = $oTag->valueGet();
}
else
{
confess "'link' tag not valid for type ${strType}";