summaryrefslogtreecommitdiffstats
path: root/Doc/.latex2html-init
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1997-12-08 20:58:13 (GMT)
committerFred Drake <fdrake@acm.org>1997-12-08 20:58:13 (GMT)
commita5a3cdcf4df6332c2885231a8265b8e88f3e0622 (patch)
tree1996e45651a538d166ecf6a0a2c39d6be97e57de /Doc/.latex2html-init
parenta417b66204fff73f693a9e05587b6a8304957b92 (diff)
downloadcpython-a5a3cdcf4df6332c2885231a8265b8e88f3e0622.zip
cpython-a5a3cdcf4df6332c2885231a8265b8e88f3e0622.tar.gz
cpython-a5a3cdcf4df6332c2885231a8265b8e88f3e0622.tar.bz2
Added Emacs turd so this file has the correct mode in Emacs / X/Emacs.
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.
Diffstat (limited to 'Doc/.latex2html-init')
-rw-r--r--Doc/.latex2html-init13
1 files changed, 12 insertions, 1 deletions
diff --git a/Doc/.latex2html-init b/Doc/.latex2html-init
index 9696293..876d728 100644
--- a/Doc/.latex2html-init
+++ b/Doc/.latex2html-init
@@ -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