[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: HTML Escape in properties

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2007-08-24 23:28:57 CEST

Simon Large wrote:
> On 24/08/07, Jason Dunham <jdunham@sfis.com> wrote:
>> Stefan Küng wrote:
>>> Jason Dunham wrote:
>>>> I use Properties -> Subversion all the time to see the Subversion URL
>>>> of a file or folder. I love the way that it's pre-selected for an
>>>> easy copy-paste into documentation or emails for my co-workers.
>>>> However, a lot of our file names have spaces, and it would be useful
>>>> to escape those with "%20" since that is proper syntax for a URL. Is
>>>> that a possible feature? It would be even cooler if they didn't show
>>>> up on screen but were stuffed into the clipboard when copied, but I
>>>> realize that is asking too much.
>>> In the early days of TSVN, the urls were shown escaped there. But
>>> users complained that this wasn't really 'readable' and that's why we
>>> changed it. Todays browsers will automatically escape such urls if you
>>> enter (or copy/paste) them into the url location bar and hit enter. So
>>> I don't really see a problem here.
>>>
>>> Stefan
>>>
>> Thanks for the reply. For me it's a usability issue, I'm constantly
>> pasting the URLs into IM windows and email messages, and those
>> automatically convert to hyperlinks, but they stop at the first space so
>> the link doesn't work. I can usually surround it with quote marks, but
>> I usually forget before sending. Usability-wise I would much rather
>> have an option for escaped characters all the time, because all other
>> software which consumes URLs (word processing and IMs) is not smart enough.
>
> I don't suppose it's possible to display unescaped and convert to
> escaped on copy is it?

No, that's not possible (without hacking the common edit control) and
it's also not a good idea: the user expects the same text to be copied
than he selected, not something else.

But I'll use this:
http://issues.tortoisesvn.net/index.php?do=details&task_id=380
as an opportunity to add another edit control with the escaped URL in it. :)

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Fri Aug 24 23:26:23 2007

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.