The rst3 plugin is required to use the script examples given in the
"@@button rst" example in the leoSettings.leo file and in Chapter 14
of the users guide (shown below).  They should be updated to utilize
the new rST functionality in Leo's core.

Until that is done, can someone post a working "@button rst" script
that doesn't require the rst3 plugin?  I would like to test the rST
implementation in Leo's core.

Script in "@@button rst" example in the leoSettings.leo file:
|   import leoPlugins
|   rst3 = leoPlugins.getPluginModule('rst3')
|   if rst3:
|       controller = rst3.controllers.get(c)
|       if controller:
|           controller.processTopTree(p)
|   else:
|       rst3 = leoPlugins.loadOnePlugin('rst3',verbose=True)
|       if rst3:
|           g.es('rst3 loaded')
|           rst3.onCreate('tag',{'c':c})
|       else:
|           # Ask to be removed.
|           g.app.scriptDict['removeMe'] = True

Script in Chapter 14 of the users guide:
|   import leo.core.leoPlugins as leoPlugins
|   rst3 = leoPlugins.getPluginModule('rst3')
|   if rst3:
|       controller = rst3.controllers.get(c)
|       if controller:
|           p,s = controller.writeNodeToString(ext='.html')
|           print '*' * 40,p
|           print s

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