]> 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:25:23 +0000 (03:25 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 4 Nov 2004 03:25:23 +0000 (03:25 +0000)
(closes SF patch #1054715; backported from trunk revision 1.151)

Doc/perl/python.perl

index c752040b9b1f5e64528b18545cec179fdab6f927..426da8bdd1492d702bfd770ccbc5656c05b23208 100644 (file)
@@ -390,9 +390,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 {