Ignore new line symbol in names

This commit is contained in:
Sergey Chebotar 2023-04-20 09:31:27 +03:00
parent f0ec240f35
commit a6caea1787

View File

@ -48,7 +48,7 @@ public class RhDxfWriter : IExcelWriter
for (int row = 0; row < 27 && i * 27 + row < pArray.Length; row++)
{
insertion.Attributes.AttributeWithTag($"Name{row}").Value = pArray[i * 27 + row].Name;
insertion.Attributes.AttributeWithTag($"Name{row}").Value = pArray[i * 27 + row].Name.Replace("\n", " ");
insertion.Attributes.AttributeWithTag($"ProductSku{row}").Value = pArray[i * 27 + row].ProductSku;
insertion.Attributes.AttributeWithTag($"Rh{row}").Value = "«РЕХАУ»";
insertion.Attributes.AttributeWithTag($"Amount{row}").Value = productDict[pArray[i * 27 + row]].ToString();