From a158f8d6dbada1a52b294b2b0e5cdfa1e92fe557 Mon Sep 17 00:00:00 2001 From: Sebastien Lebreton Date: Sun, 18 Aug 2024 10:40:36 +0200 Subject: [PATCH] Fix comments from resx --- Configuration/ConfigurationManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Configuration/ConfigurationManager.cs b/Configuration/ConfigurationManager.cs index 2c517863..33733494 100644 --- a/Configuration/ConfigurationManager.cs +++ b/Configuration/ConfigurationManager.cs @@ -146,7 +146,8 @@ private static string Comment(string? value) const string commentToken = "; "; - return commentToken + value!.Replace(Environment.NewLine, Environment.NewLine + commentToken); + const string resxNewLine = "\r\n"; + return commentToken + value!.Replace(resxNewLine, resxNewLine + commentToken); } public static void SavePropertyValue(string filename, Feature feature, string propertyName)