You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In version 0.x, the setting was indeed as you expected. After version 1.x, I used std::size_t for most variables. For convenience, I usually consider 0 as an invalid value. and this configuration has been widely used in many projects, so its meaning will not be changed.
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:
To format into this:
But it actually formats into this:
To 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).
The text was updated successfully, but these errors were encountered: