mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +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 {
|
try {
|
||||||
final PrintWriter p = new PrintWriter(file);
|
final PrintWriter p = new PrintWriter(file);
|
||||||
p.print(text0);
|
p.print(text0);
|
||||||
|
if (!text0.endsWith(("\n"))){
|
||||||
|
p.print("\n");
|
||||||
|
}
|
||||||
p.close();
|
p.close();
|
||||||
|
|
||||||
text = text0;
|
text = text0;
|
||||||
|
|||||||
Reference in New Issue
Block a user