Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4cc902f

Browse files
committed
Make the _rmtt regular expression deal with the new CSS-friendly
changes to the HTML documentation.
1 parent 70a66c9 commit 4cc902f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/tools/buildindex.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ def split_entry(str, which):
7777
return stuff
7878

7979

80-
_rmtt = re.compile(r"(.*)<tt>(.*)</tt>(.*)$", re.IGNORECASE)
80+
_rmtt = re.compile(r"(.*)<tt(?: class=[a-z0-9]+)?>(.*)</tt>(.*)$",
81+
re.IGNORECASE)
8182
_rmparens = re.compile(r"\(\)")
8283

8384
def split_entry_key(str):

0 commit comments

Comments
 (0)