mirror of https://github.com/apache/lucene.git
don't parse incomplete ctor specification
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1377949 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2ea9eec086
commit
b4ca62c640
|
@ -23,7 +23,7 @@ reMarkup = re.compile('<.*?>')
|
||||||
reDivBlock = re.compile('<div class="block">(.*?)</div>', re.IGNORECASE)
|
reDivBlock = re.compile('<div class="block">(.*?)</div>', re.IGNORECASE)
|
||||||
reCaption = re.compile('<caption><span>(.*?)</span>', re.IGNORECASE)
|
reCaption = re.compile('<caption><span>(.*?)</span>', re.IGNORECASE)
|
||||||
reTDLast = re.compile('<td class="colLast">.*<a href=".*#(.*?)">', re.IGNORECASE)
|
reTDLast = re.compile('<td class="colLast">.*<a href=".*#(.*?)">', re.IGNORECASE)
|
||||||
reColOne = re.compile('<td class="colOne">(.*?)</td>', re.IGNORECASE)
|
reColOne = re.compile('<td class="colOne">.*<a href=".*#(.*?)">', re.IGNORECASE)
|
||||||
|
|
||||||
def cleanHTML(s):
|
def cleanHTML(s):
|
||||||
s = reMarkup.sub('', s)
|
s = reMarkup.sub('', s)
|
||||||
|
@ -60,8 +60,7 @@ def checkClass(fullPath):
|
||||||
else:
|
else:
|
||||||
m = reColOne.search(line)
|
m = reColOne.search(line)
|
||||||
if m is not None:
|
if m is not None:
|
||||||
# TODO: this will only get the first line of multi-line things:
|
lastItem = m.group(1)
|
||||||
lastItem = cleanHTML(m.group(1))
|
|
||||||
#print(' item %s' % lastItem)
|
#print(' item %s' % lastItem)
|
||||||
|
|
||||||
lineLower = line.strip().lower()
|
lineLower = line.strip().lower()
|
||||||
|
|
Loading…
Reference in New Issue