* net/eww.el (eww): Trim URL with `string-trim'.

Suggested by Vibhav Pant <vibhavp@gmail.com>.
This commit is contained in:
Ted Zlatanov 2014-11-04 11:31:33 -05:00
parent 15eb2ec114
commit f3e25d69b0
2 changed files with 6 additions and 0 deletions

View 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.

View 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."))