Simple comments such as these get formatted to remove leading whitespace:
-- a
-- b
-- c
-- function test()
-- print("Hello world")
-- end
After formatting:
-- a
-- b
-- c
-- function test()
-- print("Hello world")
-- end
From what I can tell, this trimming happens regardless of any comment formatting options set. The formatter documentation specifies this whitespace should be preserved:
space_after_comment_dash only inserts one space for plain comments such as --comment when there is no gap after the prefix already; comments with larger existing gaps are preserved.
This has been tested with latest release and latest build artifacts.
Simple comments such as these get formatted to remove leading whitespace:
After formatting:
From what I can tell, this trimming happens regardless of any comment formatting options set. The formatter documentation specifies this whitespace should be preserved:
This has been tested with latest release and latest build artifacts.