ensure only 1 trailing newline

This commit is contained in:
Wagyourtail
2023-11-07 15:53:40 -07:00
parent aa71ec2726
commit 68b51af017

View File

@@ -594,7 +594,7 @@ public class JarMergeAction {
} }
sb.append(line).append("\n"); sb.append(line).append("\n");
} }
FileUtils.write(file, sb.toString(), StandardCharsets.UTF_8); FileUtils.write(file, sb.toString().trim() + "\n", StandardCharsets.UTF_8);
} }
} }
} }