Merge branch 'stripurl' of https://github.com/Konubinix/qutebrowser into Konubinix-stripurl
This commit is contained in:
commit
281d2a427b
@ -604,7 +604,7 @@ class HintManager(QObject):
|
|||||||
"""
|
"""
|
||||||
for attr in ('href', 'src'):
|
for attr in ('href', 'src'):
|
||||||
if attr in elem:
|
if attr in elem:
|
||||||
text = elem[attr]
|
text = elem[attr].strip()
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
14
tests/end2end/data/hints/html/with_spaces.html
Normal file
14
tests/end2end/data/hints/html/with_spaces.html
Normal 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>
|
Loading…
Reference in New Issue
Block a user