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? 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, 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.