PR #4351 <https://github.com/leo-editor/leo-editor/pull/4351> has been 
merged into the "devel" and "6.84" branches. This PR automatically 
beautifies scripts when the setting @bool beautify-python-code-on-write is 
True. The PR also provides a beautify-tree command.


Previous similar projects failed because they could not handle section 
references properly. The stumbling block was devising "stand-in" code that 
would always satisfy Python's *parser.* But now Leo's beautifier only uses 
*tokens,* so the stand-in code must only satisfy Python's *tokenizer,* 
which is a much easier job.


This PR is (really!) likely to be the last for Leo 6.8.4. Please continue 
testing and report any problems. Thanks.


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 view this discussion visit 
https://groups.google.com/d/msgid/leo-editor/508db7e0-1d5b-4eb8-810f-1935289f9060n%40googlegroups.com.

Reply via email to