Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

unescape %20 in urls so we don't get false failures with 1.7.0_60

Michael McCandless36edbb84ea04
diff --git a/dev-tools/scripts/checkJavaDocs.py b/dev-tools/scripts/checkJavaDocs.py
index e68f6072493..4089a8f15b5 100644
--- a/dev-tools/scripts/checkJavaDocs.py
+++ b/dev-tools/scripts/checkJavaDocs.py
@@ -212,7 +212,7 @@ def checkClassSummaries(fullPath):
if inThing:
if lineLower.find('</tr>') != -1:
if not hasDesc:
- missing.append((lastCaption, lastItem))
+ missing.append((lastCaption, unEscapeURL(lastItem)))
inThing = False
continue
else:
@@ -298,6 +298,11 @@ def checkSummary(fullPath):
f.close()
return anyMissing
+def unEscapeURL(s):
+ # Not exhaustive!!
+ s = s.replace('%20', ' ')
+ return s
+
def unescapeHTML(s):
s = s.replace('&lt;', '<')
s = s.replace('&gt;', '>')