summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-02-18 16:11:12 +0000
committerFred Drake <fdrake@acm.org>1999-02-18 16:11:12 +0000
commit4cc902f4641a49971b9b6eaea002d5b2c861ff00 (patch)
tree2afdefca4080e8ce9a9310f0410bdb8a4240e728
parent70a66c9d6d3d091758de013a3cb6507ce80ee7de (diff)
downloadcpython-git-4cc902f4641a49971b9b6eaea002d5b2c861ff00.tar.gz
Make the _rmtt regular expression deal with the new CSS-friendly
changes to the HTML documentation.
-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 6b1682f8c1..644ec4351f 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):