diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-04-20 09:31:27 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-04-20 09:31:27 +0300 |
commit | a6caea17873f64beadb6f1b0ef37966393d85484 (patch) | |
tree | 275552f383f556fc38fe341501cecbbf17824b00 | |
parent | f0ec240f351c64cfdf8aa7bac5b4fd110a579d72 (diff) |
Ignore new line symbol in names
-rw-r--r-- | RhSolutions.AddIn/Services/RhDxfWriter.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/RhSolutions.AddIn/Services/RhDxfWriter.cs b/RhSolutions.AddIn/Services/RhDxfWriter.cs index 43aa55c..49e3013 100644 --- a/RhSolutions.AddIn/Services/RhDxfWriter.cs +++ b/RhSolutions.AddIn/Services/RhDxfWriter.cs @@ -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(); |