Orange (Leo's beautify commands) will offer *two* line-length options.  
Something like:

@int beautify-split-lines-length = 88
@int beautify-join-lines-length = 60

Lines will be split if they are *longer *than 88 characters, but only be 
joined if the resulting line is *shorter *than 60 characters.  This 
provides a small bias (hysteresis) towards *not* splitting or joining 
lines.  Orange will split and join lines as black does if these two 
settings have the same value.

Edward

P.S. Recent experience reinforces my strong opinion that tools should sport 
a full range of options.  Yes, it's best not to spend much time arguing 
about small differences in python style.  However, it's clear that an 
organization should have the right to choose the style that best suits its 
need. Leo is not alone in having special needs.

Leonistas can now blacken external files within Leo, without worrying about 
black ruining Leo's sentinels.  Soon, Leonistas will be able to beautify 
their code *exactly* as they like.

EKR

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/72eee1bd-3a51-4dc5-b107-fe97fa27e861%40googlegroups.com.

Reply via email to