On Mon, Oct 10, 2011 at 11:20 AM, Terry Brown <[email protected]> wrote:
> def get_UNL(self, with_file=True):
>
>    UNL = '-->'.join(reversed([
>        i.h.replace('-->', '--%3E')
>        for i in self.self_and_parents()
>    ]))
>
>    if with_file:
>        return "%s#%s" % (self.v.context.fileName(), UNL)
>    else:
>        return UNL
>
> any comments?

In the rare case of a "-->" in a headline it would read as
top-->child-->headline with --%3E embedded-->this node

Nice.

  status line would be set with p.get_UNL(with_file=False)
>
> I think recursiveUNLSearch() is the only other method impacted, and it
> just needs to know about the escaping.
>
> It's possible that %3E as escaping might backfire, (a) because '%3E' in
> a headline would trip it up,

only if directly preceded by "--" right? Sounds like a chance worth taking.

 and (b) because some browser / url library
> manipulations might translate it to '>' prematurely.  I don't think
> either case is a major concern.
>
> Cheers -Terry
>
> --
> 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.
>
>

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