Well, it would seem odd to me that this would affe...
# ktfmt
g
Well, it would seem odd to me that this would affect import ordering and this hasn't been noticed yet, but there is this section a few lines down:
Copy code
return code.replaceRange(
        importList.startOffset,
        importList.endOffset,                   importsWithComments.joinToString(separator = "\n") { imprt -> imprt.text } + "\n")
(Sorry if the formatting is messed up there, currently on mobile) Adding
\n
instead of something like
System.lineSeparator()
seems a bit suspicious to me.