mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Merge branch 'workshopNewline' into 'master'
Cardfiles saved in the workshop should end with a newline See merge request core-developers/forge!1973
This commit is contained in:
@@ -52,6 +52,9 @@ public final class CardScriptInfo {
|
||||
try {
|
||||
final PrintWriter p = new PrintWriter(file);
|
||||
p.print(text0);
|
||||
if (!text0.endsWith(("\n"))){
|
||||
p.print("\n");
|
||||
}
|
||||
p.close();
|
||||
|
||||
text = text0;
|
||||
|
||||
Reference in New Issue
Block a user