This is probably an old problem, but I just ran across it while playing with the beta.
The attached Java project contains a severely pruned and anonymized source file which, when beautified with the default settings turns into a staircase.
I saved the output file into the project as well.