&gt; How can I cause those 2 empty lines to appear between every collected<br>(tangled?) child node, when I&#39;m using g.getScript()?<br><br>It&#39;s easily done, with some minor changes to Leo&#39;s core.<br><br>g.getScript computes the script as follows:<br>
<br>script = at.writeFromString(<br>&nbsp;&nbsp;&nbsp; p.copy(),s,<br>&nbsp;&nbsp;&nbsp; forcePythonSentinels=forcePythonSentinels,<br>&nbsp;&nbsp;&nbsp; useSentinels=useSentinels)<br><br>So we&#39;ll just add an isIPython keyword argument to both g.getScript and at.writeFromString.&nbsp; at.writeFromString (or more likely, one of its helpers) will then insert the extra lines as needed.<br>
<br>As you can see, at.writeFromString already has several options that were put there to support scripting.&nbsp; Adding one more will be harmless.<br><br>BTW, all these hacks could be done in a Leo plugin, because plugins can override any method in Leo&#39;s core.&nbsp; But there is no reason to do that--it&#39;s easier just make the changes directly.<br>
<br>Edward<br>--------------------------------------------------------------------<br>Edward K. Ream email: <a href="mailto:edreamleo@gmail.com">edreamleo@gmail.com</a><br>Leo: <a href="http://webpages.charter.net/edreamleo/front.html">http://webpages.charter.net/edreamleo/front.html</a><br>
--------------------------------------------------------------------<br>