From f3e25d69b0fc9e3a594e2087b30f610514db39b1 Mon Sep 17 00:00:00 2001 From: Ted Zlatanov Date: Tue, 4 Nov 2014 11:31:33 -0500 Subject: [PATCH] * net/eww.el (eww): Trim URL with `string-trim'. Suggested by Vibhav Pant . --- lisp/ChangeLog | 5 +++++ lisp/net/eww.el | 1 + 2 files changed, 6 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 58cdd2093ca..e849a1c0b1f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2014-11-04 Teodor Zlatanov + + * net/eww.el (eww): Trim URL with `string-trim'. + Suggested by Vibhav Pant . + 2014-11-03 Lars Magne Ingebrigtsen * net/eww.el (eww-score-readability): Don't count comments positively. diff --git a/lisp/net/eww.el b/lisp/net/eww.el index c9bb903670e..d23b71cf62a 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -160,6 +160,7 @@ See also `eww-form-checkbox-selected-symbol'." If the input doesn't look like an URL or a domain name, the word(s) will be searched for via `eww-search-prefix'." (interactive "sEnter URL or keywords: ") + (setq url (string-trim url)) (cond ((string-match-p "\\`file:/" url)) ((string-match-p "\\`ftp://" url) (user-error "FTP is not supported.")) -- 2.39.5