indent-region flattens code
gregghz opened this issue · 0 comments
gregghz commented
given
class Document @Throws(JSONException::class, MalformedURLException::class)
constructor(json: JSONObject) {
internal var uri: URL
internal var title: String
internal var thumbnail: URL
internal var edit: URL
init {
uri = URL(json.getString("uri"))
title = json.getString("title")
thumbnail = URL(json.getString("thumb"))
edit = URL(json.getString("edit"))
}
}
if you highlight all lines then run indent-region
this is the output:
class Document @Throws(JSONException::class, MalformedURLException::class)
constructor(json: JSONObject) {
internal var uri: URL
internal var title: String
internal var thumbnail: URL
internal var edit: URL
init {
uri = URL(json.getString("uri"))
title = json.getString("title")
thumbnail = URL(json.getString("thumb"))
edit = URL(json.getString("edit"))
}
}