sql-formatter icon indicating copy to clipboard operation
sql-formatter copied to clipboard

Preserve line-comment positions

Open nene opened this issue 3 years ago • 0 comments

Bring back precedingWhitespace field to preserve positions of line comments.

  • When comment was originally at the end of a line, keep it on the line end
  • When comment was originally on a separate line, keep it on separate line

Fixes #365

nene avatar Aug 11 '22 13:08 nene