On Sat, Feb 13, 2016 at 4:42 AM, Zoltan Benedek <[email protected]> wrote:

> Hi Edward,
>
> Concerning blank lines, I have a Leo script which corrects blank lines
> between main blocks and between methods:
>
> https://github.com/benzolius/leo-scripts/blob/master/correct_empty_lines.py
>

​Thanks for this.  It may be a good idea to have the @clean write logic
execute something like this script automatically.

A small suggestion--use g.es_exception() to report exceptions.  Like this


    except AnyException:
        g.es_exception()

g.es_exception automatically discovers the exception and prints it both to
the console and to the log pane.  It does a lot of work to print the
exception well, so it's definitely worth considering.

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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to