Formatting problem: closures

Using "Reformat Code" really seems to mess up multi-line closures. e.g.

      print("Item is: ")
      println(item) jcpenneykiosk
    }
  }
}
]]>

becomes:

              print("Item is: ")
              println(item)
    }
  }
}
]]>

Is there any way or making formatting leave the example formatted as it was originally? I tried looking at the formatting options but they appear to be for Java not Scala.

请先登录再写评论。