diff --git a/PROMS/Volian.Print.Library/Grid2Pdf.cs b/PROMS/Volian.Print.Library/Grid2Pdf.cs index 2433e9ad..b80b2434 100644 --- a/PROMS/Volian.Print.Library/Grid2Pdf.cs +++ b/PROMS/Volian.Print.Library/Grid2Pdf.cs @@ -906,8 +906,9 @@ public string Path { // B2020-100 Convert old and new form of non-breaking hyphen to hyphen // So that underline will work properly. - // B2020-134 fix to ensure proper font is used when hyphen is replaced - rtf = FixRTFToPrint(rtf, r, c).Replace(@"\_", @"\u8209?"); + // B2020-134 and B2020-135 replace hypens to the "-" character before processing for print - so that hypens are not printed using the symbol font. + rtf = rtf.Replace(@"\_", "-").Replace(@"\u8209?", "-"); + rtf = FixRTFToPrint(rtf, r, c); IRtfDocument rtfDoc = RtfInterpreterTool.BuildDoc(rtf); Rtf2iTextSharp rtf2IText = new Rtf2iTextSharp(rtfDoc); rtf2IText.DefaultFont = mySymFont; @@ -1452,7 +1453,7 @@ public string Path vlnCells.FixHyphens(MyPara, MyTable); vlnCells.FixBackslashes(MyPara, MyTable); myColumnText1.AddElement(MyPara); - foreach(object obj in MyPara) + foreach (object obj in MyPara) { if(obj is iTextSharp.text.Image) {