I've tried this with other common editors and none of them pad the blank 
lines:

Windows:
Editplus
Notepad++
SciTe
Visual Studio Code

Linux:
Kate
Gedit
Textosaurus
Xed

Pyzo, however, does pad the blank lines.

Looking at the code, I see that the main difficulty would be in figuring 
out the start and end of the selected region after the indent is 
calculated, so as to retain the selection.

On Sunday, February 6, 2022 at 2:32:18 PM UTC-5 TEK42 wrote:

> I dislike added whitespace where it is not needed. My preference is to 
> avoid adding whitespace characters to a blank line. I do not envision a 
> case where that would be desired, but I mostly write code and markdown docs.
>
> Cheers,
>
>
> On Sunday, February 6, 2022 at 1:57:17 PM UTC-5 tbp1...@gmail.com wrote:
>
>> If you highlight a text block in a node's body that has some blank lines 
>> and then indent it - perhaps with <TAB> - The blank lines don't stay 
>> blank.  They get padded with spaces to the new left margin.  That's 
>> annoying because 1) Leo puts dots in to show you the spaces, which is  
>> visual clutter I'd rather not have, and 2) checker commands like pylint 
>> give you warnings about them, so you feel pressed to step through and 
>> eliminate all of them.
>>
>> I'm wondering how feasible it would be to change the indenting code so 
>> that blank lines stay blank when a block is indented.  I haven't tried to 
>> find that code yet, let alone understand it, so I don't have an opinion 
>> about how easy it would be.
>>
>> Or maybe there is some good (non-programming) reason to keep the current 
>> behavior as it is, one that I haven't thought of. 
>>
>> Does anyone else care about this?  If they do, I'll create a new issue 
>> about it.  Otherwise, I suppose it wouldn't be hard to create a user 
>> command to clean up a node so that empty lines turn into blank ones.
>>
>

-- 
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 leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/017a758d-f248-4e29-b03a-6d348ea10095n%40googlegroups.com.

Reply via email to