lishunli / projectlombok

Automatically exported from code.google.com/p/projectlombok
0 stars 0 forks source link

Support use of 4-space indentation in delombok (instead of tabs) #604

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Delombok a @Data annotated class
2. Notice that tabs are used in the source generated by delombok

What is the expected output? What do you see instead?

My project uses four-space indentation. I expected delombok to follow suit, or 
to provide me with an option to specify how I want whitespace to look.

What version of the product are you using? On what operating system?

1.12.2

Original issue reported on code.google.com by cbe...@gmail.com on 8 Nov 2013 at 10:21

GoogleCodeExporter commented 9 years ago
I know the code is set up in a way this should be (relatively) easy to 
implement. Workaround for now: run a simple replace on the delomboked code.

We do accept pull requests :-) 

Original comment by r.spilker on 8 Nov 2013 at 12:55

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
We've implemented something on a branch (pretty-delombok). For now it exposes 
some command line parameters, but also heuristics on the source file to just 
"do the right thing".

Original comment by r.spilker on 20 Nov 2013 at 12:43

GoogleCodeExporter commented 9 years ago
Thanks! I'm away at the moment so won't be able to try it for another week or 
so. But will let you know when I do.

On Wed, Nov 20, 2013 at 2:43 AM, null <projectlombok@googlecode.com>
wrote:

Original comment by cbe...@gmail.com on 21 Nov 2013 at 5:51

GoogleCodeExporter commented 9 years ago
Marked as duplicate of the umbrella issue 608.

Original comment by r.spilker on 11 Dec 2013 at 8:31