diff --git a/src/ThisAssembly.Strings/Model.cs b/src/ThisAssembly.Strings/Model.cs index a65d6aa6..3693b9f2 100644 --- a/src/ThisAssembly.Strings/Model.cs +++ b/src/ThisAssembly.Strings/Model.cs @@ -51,7 +51,11 @@ public static ResourceArea Load(IEnumerable data, string rootArea) if (valueElement == null) continue; - var comment = element.Element("comment")?.Value?.Replace("<", "<").Replace(">", ">"); + var comment = element.Element("comment")?.Value? + .Replace("<", "<") + .Replace(">", ">") + .Replace("\r\n", " ").Replace("\n", " "); + var areaParts = id.Split(new[] { "_" }, StringSplitOptions.RemoveEmptyEntries); if (areaParts.Length <= 1) {