From 1a6635345ba9a43ef021c8d3266b5358ddbb9fe7 Mon Sep 17 00:00:00 2001 From: Lexi Date: Fri, 1 Sep 2023 17:12:09 -0400 Subject: [PATCH] Convert CRLF -> LF for localization files --- SpaceWarp.Core/InternalUtilities/AssetHelpers.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpaceWarp.Core/InternalUtilities/AssetHelpers.cs b/SpaceWarp.Core/InternalUtilities/AssetHelpers.cs index db3d80f8..5eeeaac3 100644 --- a/SpaceWarp.Core/InternalUtilities/AssetHelpers.cs +++ b/SpaceWarp.Core/InternalUtilities/AssetHelpers.cs @@ -40,14 +40,14 @@ internal static void LoadLocalizationFromFolder(string folder) foreach (var csvFile in info.GetFiles("*.csv")) { languageSourceData ??= new LanguageSourceData(); - var csvData = File.ReadAllText(csvFile.FullName); + var csvData = File.ReadAllText(csvFile.FullName).Replace("\r\n", "\n"); languageSourceData.Import_CSV("", csvData, eSpreadsheetUpdateMode.AddNewTerms); } foreach (var i2CsvFile in info.GetFiles("*.i2csv")) { languageSourceData ??= new LanguageSourceData(); - var i2CsvData = File.ReadAllText(i2CsvFile.FullName); + var i2CsvData = File.ReadAllText(i2CsvFile.FullName).Replace("\r\n", "\n"); languageSourceData.Import_I2CSV("", i2CsvData, eSpreadsheetUpdateMode.AddNewTerms); }