beautify node and tree gone/replaced?

22 views
Skip to first unread message

Matt Wilkie

unread,
Mar 17, 2020, 12:22:49 AM3/17/20
to leo-editor
Are the beautify-node and beautify-tree commands supposed to be gone? If yes, they've presumably replaced with something else I've missed. What pray tell?


Log window:

Leo 6.3-devel, devel branch, build da6df05a98
2020-03-16 16:20:41 -0500
Python 3.6.8, PyQt version 5.12.6
linux

{...snip...}

no command for @item 'beautify-node'
no command for @item 'beautify-tree'

Edward K. Ream

unread,
Mar 17, 2020, 2:03:38 AM3/17/20
to leo-editor
On Mon, Mar 16, 2020 at 11:22 PM Matt Wilkie <map...@gmail.com> wrote:
Are the beautify-node and beautify-tree commands supposed to be gone?

Yes. I've just updated LeoDocs.leo to mention that.
If yes, they've presumably replaced with something else I've missed. What pray tell?

beautify-files and diff-beautify-files.

Edward

Matt Wilkie

unread,
Mar 17, 2020, 9:57:07 AM3/17/20
to leo-editor
 Umm, so there's no way to use beauty commands on nodes which aren't in external files?

Edward K. Ream

unread,
Mar 17, 2020, 10:12:53 AM3/17/20
to leo-editor
On Tue, Mar 17, 2020 at 8:57 AM Matt Wilkie <map...@gmail.com> wrote:

> so there's no way to use beauty commands on nodes which aren't in external files?

Sad, but true.

Well, not so sad, from my point of view :-) The new way eliminates the need for the SyntaxSanitizer class, which is now in the attic. It was an horrendous hack, which still didn't quite work all the time.

If you want to know more, take a look at the docstring.

Edward
Reply all
Reply to author
Forward
0 new messages