]> granicus.if.org Git - python/commitdiff
Added Emacs turd so this file has the correct mode in Emacs / X/Emacs.
authorFred Drake <fdrake@acm.org>
Mon, 8 Dec 1997 20:58:13 +0000 (20:58 +0000)
committerFred Drake <fdrake@acm.org>
Mon, 8 Dec 1997 20:58:13 +0000 (20:58 +0000)
clean_key():  Override the standard LaTeX2HTML clean_key() to remove a
leading HTML tag, if present.  This broke the indexes for the library
reference (at least) since many of the strings began with <code> or
something similar.

Doc/.latex2html-init

index 9696293569593623c33bb301b81775a6897d05b4..876d72895084a8d0bfb1ea3aa4b04a5ba1811262 100644 (file)
@@ -1,4 +1,4 @@
-#LaTeX2HTML Version 96.1 : dot.latex2html-init
+#LaTeX2HTML Version 96.1 : dot.latex2html-init         -*- perl -*-
 #
 
 $INFO = 1;              # 0 = do not make a "About this document..." section 
@@ -196,4 +196,15 @@ sub add_idx {
 }
 
 
+# need to remove leading <...>
+sub clean_key {
+    local ($_) = @_;
+    tr/A-Z/a-z/;
+    s/\s//;
+    s/\#\#\#\d+$//o;           # Remove the unique id
+    s/^<[a-z][-._a-z0-9]*>//;  # Remove leading <gi>
+    $_
+}
+
+
 1;     # This must be the last line