mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +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
1 changed files with 6 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue