From 3b1a01df4e05a29172e9b76da896370f47e87bda Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 18 Aug 2020 12:19:40 +0000 Subject: [PATCH] B2020-100 Convert old and new form of non-breaking hyphen to hyphen so that underline will work properly. --- PROMS/Volian.Print.Library/Grid2Pdf.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/Grid2Pdf.cs b/PROMS/Volian.Print.Library/Grid2Pdf.cs index cdadd0ad..cdcc94bc 100644 --- a/PROMS/Volian.Print.Library/Grid2Pdf.cs +++ b/PROMS/Volian.Print.Library/Grid2Pdf.cs @@ -904,8 +904,10 @@ public string Path } private iTextSharp.text.Paragraph RtfToParagraph(string rtf, iTextSharp.text.Font mySymFont,int r, int c) { - rtf = FixRTFToPrint(rtf, r, c).Replace(@"\_", "-");//B2020-100 RHM Convert new form of non-breaking hyphen to hyphen + // B2020-100 Convert old and new form of non-breaking hyphen to hyphen + // So that underline will work properly. IRtfDocument rtfDoc = RtfInterpreterTool.BuildDoc(rtf); + rtf = FixRTFToPrint(rtf, r, c).Replace(@"\_", "-").Replace(@"\u8209?","-"); Rtf2iTextSharp rtf2IText = new Rtf2iTextSharp(rtfDoc); rtf2IText.DefaultFont = mySymFont; iTextSharp.text.Paragraph para = rtf2IText.Convert();