On Mon, 12 Dec 2011 06:16:49 -0800 (PST)
HansBKK <[email protected]> wrote:
> Could the criteria exclude nodes with no body content?
def report(p):
if p.b.strip() and not p.v.anyAtFileNodeName():
g.es(p.get_UNL(False))
for i in p.children():
report(i)
for i in c.rootPosition().self_and_siblings():
report(i)
would be nodes with body content only, I think.
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.