mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
fix markup in "title" attribute for \citetitle{}
(closes SF patch #1054715; backporting to release23-maint branch)
This commit is contained in:
parent
7348bad5b5
commit
ed306292d6
1 changed files with 2 additions and 1 deletions
|
@ -389,9 +389,10 @@ sub do_cmd_citetitle{
|
||||||
my $icon = get_link_icon($url);
|
my $icon = get_link_icon($url);
|
||||||
my $repl = '';
|
my $repl = '';
|
||||||
if ($url) {
|
if ($url) {
|
||||||
|
my $titletext = strip_html_markup("$title");
|
||||||
$repl = ("<em class=\"citetitle\"><a\n"
|
$repl = ("<em class=\"citetitle\"><a\n"
|
||||||
. " href=\"$url\"\n"
|
. " href=\"$url\"\n"
|
||||||
. " title=\"$title\"\n"
|
. " title=\"$titletext\"\n"
|
||||||
. " >$title$icon</a></em>");
|
. " >$title$icon</a></em>");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue