Make the _rmtt regular expression deal with the new CSS-friendly

changes to the HTML documentation.
This commit is contained in:
Fred Drake 1999-02-18 16:11:12 +00:00
parent 70a66c9d6d
commit 4cc902f464
1 changed files with 2 additions and 1 deletions

View File

@ -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):