Before I create an issue on GitHub, I thought I would ask here first to see if the outcome is as intended or is a bug.
I use the 'Extract' command frequently to create child nodes from selected text (Edit->Edit Text->Create Sections->Extract). I find it annoying that the command strips out all trailing blank lines. The same thing happens with a script I use to capture a node and its children and copy to the clipboard (perhaps the code is related, I don't know). The script begins: ~~~ s = g.getScript(c,p,useSentinels=False,forcePythonSentinels=False) g.app.gui.replaceClipboardWith(s) ~~~ The result of both the Extract command and the script is the same; all trailing blank lines are stripped out. Is this by design? If so, what is the rationale? -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/45500ed1-bc04-424a-bb97-bb6959e1ae18n%40googlegroups.com.
