Closed AlbericC closed 8 years ago
Just tried some things and it looks like I can do either.
I'm inclined to say 2 is the best way and is most likely to be the expected behavior. What do you think?
What bugs me is the odd aspect of a folded file, with spacing uneven. So whatever is fine I guess.
Come to think of it, 2 is probably better for compactness.
Perfect: folding a bunch of functions with k<space>
is definitely comfortable ! Thank you !
FWIW, I think you made the right choice. PEP-8 recommends empty lines following a lot of blocks, and if those aren't folded in I'm wasting twice the space in a folded file.
I agree. It definitely grew on me. I was too narrowly focused on finding the block borders in the beginning. :expressionless:
with this sample code, folding
myfunction
leaves the two blank lines above the def in line 7, while foldingmyotherfunction
also folds the blank lines above theif
statement.Is there any way to always leave the blanks or always fold blank lines ?