From 8369140b72d2061b30f1025683c6ed77952db295 Mon Sep 17 00:00:00 2001 From: Samuel Loury Date: Thu, 9 Jun 2016 08:23:53 +0200 Subject: [PATCH] Strip the url before processing it This won't hurt and will help with some poorly formatted sites including blank spaces around the url (e.g. the Previous link in a dashboard make with CDash 2.0.2). --- qutebrowser/browser/hints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/browser/hints.py b/qutebrowser/browser/hints.py index 3f465cfce..3bb172300 100644 --- a/qutebrowser/browser/hints.py +++ b/qutebrowser/browser/hints.py @@ -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