Kaydet (Commit) f06b9053 authored tarafından Fred Drake's avatar Fred Drake

Remove section number from the title for use in the

<meta name='description' ...> element in the document head.
üst 0e85f9d6
...@@ -663,9 +663,14 @@ sub make_head_and_body($$) { ...@@ -663,9 +663,14 @@ sub make_head_and_body($$) {
$charset = $CHARSET; $charset = $CHARSET;
$charset =~ s/_/\-/go; $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('', join('',
$MY_PARTIAL_HEADER, $MY_PARTIAL_HEADER,
&meta_information($title), &meta_information($metatitle),
"<title>", $title, "</title>\n</head>\n<body$body>"); "<title>", $title, "</title>\n</head>\n<body$body>");
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment