On Sun, Jun 20, 2010 at 10:15 AM, Edward K. Ream <[email protected]> wrote:

> 2. The example does not use the ';/:' convention to indicate that the
> body text of a node does not end in a newline.  I'm not sure whether
> this is a feature or a bug.

I remember now why this convention doesn't matter.  It's worth repeating.

The reason is that the trailing newline in the body text doesn't
matter(!)  Indeed, every node will be followed by a sentinel, which
requires a preceding newline.  Thus, **in the external file itself**,
every node will be followed by a newline, namely the newline that
starts the next sentinel.

This being so, it doesn't actually matter whether the body text of a
node ends in a newline--it does not affect the external file.  The
convention, if we used it, would only affect the (inconsequential)
trailing newline in the body text.  Thus, we may as well "regularize"
body text by ending all body text with a newline, and we may as well
dispense with the convention altogether.

Notes:

1. Similar remarks do *not* apply to @nosent and @asis files.  There,
the trailing newline does matter, and Leo is obliged to terminate
nodes correctly.

2. The last node might be a special case, but heretofore it has not
been because thin external files end with an @-leo sentinel.  I've
never heard complaints that it's impossible to terminate a thin
external file without a newline, so I suspect that it doesn't matter
whether the simplified scheme uses @-leo sentinels or not.  If it
doesn't, the lack of the ';/:' convention (for the last node only)
means that thin external files will always end in a newline.  That
does not seem like a big deal to me.

In sum, the ';/:' provides nothing significant to the user and adds
cruft to thin files.  I don't plan to use it.

Edward

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