You've already forked pgbackrest
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:
@ -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}";
|
||||
|
Reference in New Issue
Block a user