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
This equally applies to dedent, and looking at the code it makes me wonder whether this even has a clean solution.
What is the expected output for in input that has NO trailing newline? That's easy, last line gets indented, and no trailing newline. Now what if the input does have a trailing newline? should that newline now be indented as well?
Hello,
The indent and dedent functions both add a final "\n" sequence at the end of the string.
Code reference of the indent function:
Penlight/lua/pl/stringx.lua
Lines 500 to 514 in b101290
I think this extra "\n" sequence shouldn't be here. It's not part of the functions documentations and is (at least in my use case) unwanted.
The text was updated successfully, but these errors were encountered: