emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH][BUG]: eww doesnt trim whitespace from address


From: Ted Zlatanov
Subject: Re: [PATCH][BUG]: eww doesnt trim whitespace from address
Date: Mon, 03 Nov 2014 08:46:45 -0500
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux)

On Fri, 21 Mar 2014 14:57:37 +0530 Vibhav Pant <address@hidden> wrote: 

VP> As of now, eww does not rim the user specified address, this often
VP> leads to problems especially if the address is from the clipboard (eww
VP> reports that the service isnt known). Most browsers automatically do
VP> this, so I have included a patch to solve this problem.

VP> This patch simply setq's url to a "trimmed" version of it.
VP> The change is pretty non trivial, so I think it can be included in this 
release.

I think the fairly recent function `string-trim' would be better than
the proposed regex approach.

I also don't know if there are any exceptions to this--are there cases
where you want to preserve the trailing space on a URL and/or encode
them to "%20"?

Thanks
Ted




reply via email to

[Prev in Thread] Current Thread [Next in Thread]