Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Remove line break after update if breakAfterSelect = false #188

@PhilippSalvisberg

Description

@PhilippSalvisberg

The following input

update
emp
set
sal
=
sal 
+ 
10
where
sal
< 3000
;

produces this formatter result with the default settings:

update
       emp
   set sal = sal + 10
 where sal < 3000;

expected is

update emp
   set sal = sal + 10
 where sal < 3000;

A line break after the update keyword is expected only when "Line Breaks -> SELECT/FROM/WHERE" is checked (breaksAfterSelect). Which produces this result, which is ok:

update
   emp
set
   sal = sal + 10
where
   sal < 3000;

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions