]> git.eshelyaron.com Git - emacs.git/commitdiff
* net/eww.el (eww): Trim URL with `string-trim'.
authorTed Zlatanov <tzz@lifelogs.com>
Tue, 4 Nov 2014 16:31:33 +0000 (11:31 -0500)
committerTed Zlatanov <tzz@lifelogs.com>
Tue, 4 Nov 2014 16:31:33 +0000 (11:31 -0500)
Suggested by Vibhav Pant <vibhavp@gmail.com>.

lisp/ChangeLog
lisp/net/eww.el

index 58cdd2093ca9499e0d09dadb920d7b79bb486aed..e849a1c0b1f9b5ef36ce8b524a9b5ba4cb74badd 100644 (file)
@@ -1,3 +1,8 @@
+2014-11-04  Teodor Zlatanov  <tzz@lifelogs.com>
+
+       * net/eww.el (eww): Trim URL with `string-trim'.
+       Suggested by Vibhav Pant <vibhavp@gmail.com>.
+
 2014-11-03  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * net/eww.el (eww-score-readability): Don't count comments positively.
index c9bb903670eb37f7563c48b0632e36f9f2d9d60d..d23b71cf62ac4ecd7c20593257c3cf758969ec54 100644 (file)
@@ -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."))