File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -301,6 +301,13 @@ impl<'a> Formatter<'a> {
301301 . max_inline_arguments
302302 . is_none_or ( |limit| limit < self . indentation . span ( ) )
303303 {
304+ // We inlined something to the top level let's increase the indentation now
305+ if let Some ( ( _, s) ) = self . indentation . previous_top_level_reserved ( ) {
306+ if !s. newline_after {
307+ self . indentation . increase_top_level ( s. clone ( ) ) ;
308+ }
309+ }
310+
304311 self . add_new_line ( query) ;
305312 } else {
306313 self . trim_spaces_end ( query) ;
Original file line number Diff line number Diff line change @@ -2477,7 +2477,7 @@ from
24772477 SELECT true
24782478 FROM bar
24792479 WHERE bar.foo = $99
2480- AND bar.foo > $100
2480+ AND bar.foo > $100
24812481 ),
24822482 c = CASE WHEN $6 THEN NULL ELSE COALESCE($7, c) END,
24832483 d = CASE
You can’t perform that action at this time.
0 commit comments