Leo will never write pep-8 style sentinels

15 views
Skip to first unread message

Edward K. Ream

unread,
Apr 26, 2022, 12:51:57 PM4/26/22
to leo-editor
This post is part of Leo's transition to maintenance mode.

At present, Leo can read external files that have been "blackened". That is, Leo allows whitespace between the opening comment delim ('#' for python) and the following `@' characters. However, Leo does not write sentinel lines in pep 8 format.

Leo will never write pep-8 sentinels

Here are my reasons:

1. Pep 8 conventions do not apply. Leo's sentinels predate python! Users do not see Leo's sentinels, so readability or stylistic issues are irrelevant.

2. Writing `# @` instead of `#@` would be wrong. Old versions of Leo would not be able to read external files containing those sentinels.

3. There are several easy and obvious workarounds for those who want to beautify their external files with black, including using `@clean` instead of `@file`.

Summary

I will reject proposals to add command-line options or user settings to change how Leo writes sentinels.

I have just created info issue #2625 as a permanent version of this post.

Edward
Reply all
Reply to author
Forward
0 new messages