I have a script I use frequently to copy a node and its subtree to the clipboard for pasting into other applications (thanks to @Vitalije for getting me started on the script!)
s = g.getScript(c,p,useSentinels=False,forcePythonSentinels=False) g.app.gui.replaceClipboardWith(s) g.es(c.p.h+" (node + expansion) copied to clipboard. Paste as-is (CTRL-V) to external application as needed.") The weirdness is that if I place the @language directive as the first line of the node and run the script, the clipboard is empty. I tried this with several different @languages (tried tex, html, plain and c) and all fail except @language python, which then works as expected. If I move the @language directive to a parent node, the script works. Any idea why the script works for @language python and not for any other @language? Rob... -- 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.
