diff options
author | Fred Drake <fdrake@acm.org> | 2003-05-02 18:08:16 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2003-05-02 18:08:16 (GMT) |
commit | f06b90534bd917bb5628d8db4355517e69a2dac6 (patch) | |
tree | c60933d11668f6c6da97ee4ad080ef6eb53c303a /Doc/perl | |
parent | 0e85f9d6fdabd4eb4d03424cb1847f8f05ac9cc9 (diff) | |
download | cpython-f06b90534bd917bb5628d8db4355517e69a2dac6.zip cpython-f06b90534bd917bb5628d8db4355517e69a2dac6.tar.gz cpython-f06b90534bd917bb5628d8db4355517e69a2dac6.tar.bz2 |
Remove section number from the title for use in the
<meta name='description' ...> element in the document head.
Diffstat (limited to 'Doc/perl')
-rw-r--r-- | Doc/perl/l2hinit.perl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Doc/perl/l2hinit.perl b/Doc/perl/l2hinit.perl index 6da3926..6bf86f8 100644 --- a/Doc/perl/l2hinit.perl +++ b/Doc/perl/l2hinit.perl @@ -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>"); } |