mirror of
https://github.com/python/cpython
synced 2024-10-09 02:28:33 +00:00
Remove section number from the title for use in the
<meta name='description' ...> element in the document head.
This commit is contained in:
parent
0e85f9d6fd
commit
f06b90534b
|
@ -663,9 +663,14 @@ sub make_head_and_body($$) {
|
|||
$charset = $CHARSET;
|
||||
$charset =~ s/_/\-/go;
|
||||
}
|
||||
# Remove section number from the title for use in the
|
||||
# <meta name='description' ...> element in the document head.
|
||||
my $metatitle = "$title";
|
||||
$metatitle =~ s/^\d+(\.\d+)*\s*//;
|
||||
|
||||
join('',
|
||||
$MY_PARTIAL_HEADER,
|
||||
&meta_information($title),
|
||||
&meta_information($metatitle),
|
||||
"<title>", $title, "</title>\n</head>\n<body$body>");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue