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
{{ message }}
Repository navigation
Script generator - preserve leading newline ahead of multi-line comment #194
Thanks for the wonderful enhancement in #187 - did find one possible gap which users may want addressed. Consider the following example:
-- single line commentselect c1
/*multi line comment, c2*/
, c3
from t1
After formatting (with [1]), the output looks like this:
-- single line commentSELECT c1 /*multi line comment, c2*/,
c3
FROM t1;
As you can see, the leading token for the multi-line comment was moved "up" to the previous line. Most cases where multi-line comments are used, stylistically require that the comment start token be the first column.
It would be great to have control over this behavior, with the default to have any preceding newline preserved prior to emitting the multi-line comment in the output.
Activity
rwestMSFT commentedon May 27, 2026
I may have fixed this in #209.
dzsquared commentedon Jul 9, 2026
Closed based on 180.37.3 no longer having the behavior - agree that it was likely #209 that fixed it