-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for #1221: apply multi-lines indent to "if/for/while (...)"
- Loading branch information
1 parent
1ec3d8d
commit f91b541
Showing
4 changed files
with
140 additions
and
88 deletions.
There are no files selected for viewing
22 changes: 10 additions & 12 deletions
22
...ipse.refactoring.test/resources/Formatter/Formatter_Test_Indentation_Return_Statement.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
###prop | ||
setPreferences=true | ||
bracesEnd=next | ||
indentation=space | ||
tabsize=4 | ||
indentEmptyLines=true | ||
indentation=space | ||
setPreferences=true | ||
###src | ||
MyBean soSomething() { | ||
return new MyBean('foo', | ||
T f() { | ||
return new T('foo', | ||
'bar', 'baz') | ||
} | ||
MyBean soSomething() { | ||
return method('foo', | ||
T g() { | ||
return m('foo', | ||
'bar', 'baz') | ||
} | ||
###exp | ||
MyBean soSomething() { | ||
return new MyBean('foo', | ||
T f() { | ||
return new T('foo', | ||
'bar', 'baz') | ||
} | ||
MyBean soSomething() { | ||
return method('foo', | ||
T g() { | ||
return m('foo', | ||
'bar', 'baz') | ||
} | ||
###end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.