I would like to create an outline with several levels with a python script.

I have found that I can create new nodes with the following:

for num in range(1,5):
    nd = p.insertAfter()
    nd.h = "test " + str(num)
    # move cursor down one
    p.moveToNext()

c.redraw

but I can find not find an example or documentation of how to promote or 
demote the outline level at the current position

I have tried the level command, but this only seems to get the level.

Leo seems to be very well thought out, so I am sure that I am missing 
something obvious, but any help would be appreciated.

Thanks,

djc



-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to