Merge branch 'stripurl' of https://github.com/Konubinix/qutebrowser into Konubinix-stripurl

This commit is contained in:
Florian Bruhin 2016-06-09 10:38:35 +02:00
commit 281d2a427b
2 changed files with 15 additions and 1 deletions

View File

@ -604,7 +604,7 @@ class HintManager(QObject):
"""
for attr in ('href', 'src'):
if attr in elem:
text = elem[attr]
text = elem[attr].strip()
break
else:
return None

View File

@ -0,0 +1,14 @@
<!DOCTYPE html>
<!-- target: hello.txt -->
<html>
<head>
<meta charset="utf-8">
<title>Simple link</title>
</head>
<body>
<a href="
/data/hello.txt">Follow me!</a>
</body>
</html>