fix ignore last line in code formatter