refactor emit `case`
add newline indent to emit `do`
Merge branch 'master' into 1.5.2-dev

* master:
  add newline indent to emit `do`
  refactor emit `case`