Ignore new line symbol in names
This commit is contained in:
parent
f0ec240f35
commit
a6caea1787
@ -48,7 +48,7 @@ public class RhDxfWriter : IExcelWriter
|
|||||||
|
|
||||||
for (int row = 0; row < 27 && i * 27 + row < pArray.Length; row++)
|
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($"ProductSku{row}").Value = pArray[i * 27 + row].ProductSku;
|
||||||
insertion.Attributes.AttributeWithTag($"Rh{row}").Value = "«РЕХАУ»";
|
insertion.Attributes.AttributeWithTag($"Rh{row}").Value = "«РЕХАУ»";
|
||||||
insertion.Attributes.AttributeWithTag($"Amount{row}").Value = productDict[pArray[i * 27 + row]].ToString();
|
insertion.Attributes.AttributeWithTag($"Amount{row}").Value = productDict[pArray[i * 27 + row]].ToString();
|
||||||
|
Loading…
Reference in New Issue
Block a user