space between nodes

8 views
Skip to first unread message

Terry

unread,
Dec 14, 2011, 12:49:59 PM12/14/11
to leo-editor
Is there a setting to control space/gap between nodes ?

Edward K. Ream

unread,
Dec 15, 2011, 4:43:13 AM12/15/11
to leo-e...@googlegroups.com
On Wed, Dec 14, 2011 at 12:49 PM, Terry <webto...@gmail.com> wrote:
> Is there a setting to control space/gap between nodes ?

No, and there can't be such a setting.

Within @file trees, Leo's simplified sentinels have the side effect of
having each node end in a newline.

If you must control newlines exactly you can use @nosent, and for even
more control you can use @asis.

Outside of @<file> trees, you get exactly the trailing newlines that
you specify. Thus, scripts could preserve whitespace (or add
whitespace) by traversing (parts of) a Leo outline that is outside any
@<file> tree.

HTH.

Edward

HansBKK

unread,
Dec 15, 2011, 6:28:42 AM12/15/11
to leo-e...@googlegroups.com
On Thursday, December 15, 2011 4:43:13 PM UTC+7, Edward K. Ream wrote:
On Wed, Dec 14, 2011 at 12:49 PM, Terry <webto...@gmail.com> wrote:
> Is there a setting to control space/gap between nodes ?

I may be wrong, but I interpreted Terry's question as regarding the visual spacing in the outline pane, as in just tweaking UI appearance rather than changing functionality in processing.
 

No, and there can't be such a setting.

Within @file trees, Leo's simplified sentinels have the side effect of having each node end in a newline.

BTW I've noticed the same for @shadow. Is it true in general that @shadow and @file are functionally equivalent, just store their sentinels differently?


Terry Brown

unread,
Dec 15, 2011, 10:01:30 AM12/15/11
to leo-e...@googlegroups.com
On Thu, 15 Dec 2011 04:43:13 -0500
"Edward K. Ream" <edre...@gmail.com> wrote:

> On Wed, Dec 14, 2011 at 12:49 PM, Terry <webto...@gmail.com> wrote:
> > Is there a setting to control space/gap between nodes ?
>
> No, and there can't be such a setting.

I thought the other Terry was asking about graphical layout in the tree
pane, and I looked for a Qt style setting to adjust that, but didn't
find one in the time I had.

Cheers -Terry

Edward K. Ream

unread,
Dec 15, 2011, 10:39:36 AM12/15/11
to leo-e...@googlegroups.com
On Thu, Dec 15, 2011 at 6:28 AM, HansBKK <han...@gmail.com> wrote:

>> Within @file trees, Leo's simplified sentinels have the side effect of
>> having each node end in a newline.
>
> BTW I've noticed the same for @shadow. Is it true in general that @shadow
> and @file are functionally equivalent, just store their sentinels
> differently?

@shadow uses old-style sentinels that do a better job of preserving whitespace.

Other than that, I suppose you could say @shadow and @file are
"functionally equivalent", but that's not a term of art.

EKR

Reply all
Reply to author
Forward
0 new messages