summaryrefslogtreecommitdiffstats
path: root/Doc/tools/buildindex.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-02-18 16:11:12 (GMT)
committerFred Drake <fdrake@acm.org>1999-02-18 16:11:12 (GMT)
commit4cc902f4641a49971b9b6eaea002d5b2c861ff00 (patch)
tree2afdefca4080e8ce9a9310f0410bdb8a4240e728 /Doc/tools/buildindex.py
parent70a66c9d6d3d091758de013a3cb6507ce80ee7de (diff)
downloadcpython-4cc902f4641a49971b9b6eaea002d5b2c861ff00.zip
cpython-4cc902f4641a49971b9b6eaea002d5b2c861ff00.tar.gz
cpython-4cc902f4641a49971b9b6eaea002d5b2c861ff00.tar.bz2
Make the _rmtt regular expression deal with the new CSS-friendly
changes to the HTML documentation.
Diffstat (limited to 'Doc/tools/buildindex.py')
-rwxr-xr-xDoc/tools/buildindex.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/tools/buildindex.py b/Doc/tools/buildindex.py
index 6b1682f..644ec43 100755
--- a/Doc/tools/buildindex.py
+++ b/Doc/tools/buildindex.py
@@ -77,7 +77,8 @@ def split_entry(str, which):
return stuff
-_rmtt = re.compile(r"(.*)<tt>(.*)</tt>(.*)$", re.IGNORECASE)
+_rmtt = re.compile(r"(.*)<tt(?: class=[a-z0-9]+)?>(.*)</tt>(.*)$",
+ re.IGNORECASE)
_rmparens = re.compile(r"\(\)")
def split_entry_key(str):