javadocs-linter: strip whitespace when parsing links

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1334586 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2012-05-06 10:08:07 +00:00
parent 9707be81c1
commit f846cc3260
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ class FindHyperlinks(HTMLParser):
self.anchors.add(name)
elif href is not None:
assert name is None
href = href.strip()
self.links.append(urlparse.urljoin(self.baseURL, href))
else:
if self.baseURL.endswith('/AttributeSource.html'):