On Thu, Feb 13, 2020 at 4:02 AM Edward K. Ream <edream...@gmail.com> wrote:

> ...it should be pretty safe to try out the new beautify-files command.

There is a problem with @doc and @ sections.

Leo uses a too-clever-by-half convention for determining whether blank
lines in such sections are "real". At present, beautifying a file destroys
that info. It will probably be possible to save some new state to deal with
this, but I haven't done so yet.

Another known bug: -1 sometimes gets formatted as - 1. This will likely be
fixed by consulting the ast node corresponding to one or more tokens.
Failing unit tests cover this bug.

A recent rev fixed a nasty bug: beautifying files would insert too many
blank lines at the end of the file. The result, within Leo, were unwanted
@last directives.

Edward

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAMF8tS2jZzJuxVxqXA3THu_sijbiF0nd4NvyqOBN5GsrRCR1Xw%40mail.gmail.com.

Reply via email to