-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Expectation
If I set the "line spacing" for something to be fixed(1), there should be one blank line enforced for the relevant items.
Reality
"Line spacing" is actually referring to the number of newlines (\n) that will be enforced, not (blank) lines.
Example
line_space_after_function_statement = fixed(1)
Expectation: There will be exactly 1 empty line after all functions.
I expect this Lua code:
function foo() print("Hello world") end
function bar() print("Hello from bar") end
function baz() print("Hello from baz") endTo format into this:
function foo() print("Hello world") end
function bar() print("Hello from bar") end
function baz() print("Hello from baz") endBut it actually formats into this:
function foo() print("Hello world") end
function bar() print("Hello from bar") end
function baz() print("Hello from baz") endTo get the expected behaviour you have to set the line spacing to 2, which is not very intuitive (especially when compared to other formatting tools).
Metadata
Metadata
Assignees
Labels
No labels