]> granicus.if.org Git - python/commitdiff
Remove section number from the title for use in the
authorFred Drake <fdrake@acm.org>
Fri, 2 May 2003 18:08:16 +0000 (18:08 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 2 May 2003 18:08:16 +0000 (18:08 +0000)
<meta name='description' ...> element in the document head.

Doc/perl/l2hinit.perl

index 6da39268fddae023a5caff209d72ade703845d22..6bf86f859c53221870f89a3801261f30867c52b1 100644 (file)
@@ -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>");
 }