Skip to content

Apache Lucene open-source search software

Account for whitespace in the middle of links when checking javadoc links

Ryan Ernst3a56b1e05b82
diff --git a/dev-tools/scripts/checkJavadocLinks.py b/dev-tools/scripts/checkJavadocLinks.py
index 15b56ec2448..6a710f6f804 100644
--- a/dev-tools/scripts/checkJavadocLinks.py
+++ b/dev-tools/scripts/checkJavadocLinks.py
@@ -177,6 +177,9 @@ def checkAll(dirName):
else:
anchor = None
+ # remove any whitespace from the middle of the link
+ link = ''.join(link.split())
+
idx = link.find('?')
if idx != -1:
link = link[:idx]