On Mon, Mar 12, 2012 at 7:01 AM, Edward K. Ream <[email protected]> wrote:

> g.handleUrl should strip off @url automatically if present.
>
> You have also exposed two items...
> 1. There is no longer any need for g.handleUrlInUrlNode.
> 2. There is duplicate code in g.handleUrl dealing with expanduser.
>
> I'll attend to all of this today.

Done at rev 5126.  In addition, g.handleUrl now properly handles the following:

A.  @path directives in ancestor nodes in file:// urls.
B.  {{expressions}} in file:// urls.
C. always calls the browser for file:// urls ending in .html or .htm.
     This might be a dubious choice: g.os_startfile uses the user's preference.

Example 1::

- @path c:/prog
  - @url file://test.sh

is equivalent to::

@url file:://c:/prog/test.ch

Example 2::

@url file://{{c.openDirectory}}/../doc/LeoDocs.leo

The only item remaining is to use urllib.unquote to handle blanks.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to