You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2014/03/07 18:09:27 UTC
svn commit: r1575328 - /lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py
Author: mikemccand
Date: Fri Mar 7 17:09:27 2014
New Revision: 1575328
URL: http://svn.apache.org/r1575328
Log:
unescape %20 in urls so we don't get false failures with 1.7.0_60
Modified:
lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py
Modified: lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py?rev=1575328&r1=1575327&r2=1575328&view=diff
==============================================================================
--- lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py (original)
+++ lucene/dev/trunk/dev-tools/scripts/checkJavaDocs.py Fri Mar 7 17:09:27 2014
@@ -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('<', '<')
s = s.replace('>', '>')