]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix markup in "title" attribute for \citetitle{}
authorFred Drake <fdrake@acm.org>
Thu, 4 Nov 2004 03:23:04 +0000 (03:23 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 4 Nov 2004 03:23:04 +0000 (03:23 +0000)
(closes SF patch #1054715; backporting to release23-maint branch)

Doc/perl/python.perl

index c7f2ffb5b6dfefe203fe2777762eb324de4d7574..14ce9584c1b1bfe2de003a67dc57435bbca2ec56 100644 (file)
@@ -389,9 +389,10 @@ sub do_cmd_citetitle{
     my $icon = get_link_icon($url);
     my $repl = '';
     if ($url) {
+        my $titletext = strip_html_markup("$title");
         $repl = ("<em class=\"citetitle\"><a\n"
                  . " href=\"$url\"\n"
-                 . " title=\"$title\"\n"
+                 . " title=\"$titletext\"\n"
                  . " >$title$icon</a></em>");
     }
     else {