From d2501a0662638c52412fb686e18bb018aa75f80d Mon Sep 17 00:00:00 2001 From: Kathy Date: Mon, 16 May 2022 14:12:38 +0000 Subject: [PATCH] =?UTF-8?q?B2022-058:=20print=20of=20transitions=20in=20ta?= =?UTF-8?q?bles=20with=20a=20dash,=20=E2=80=98-=E2=80=98,=20are=20printing?= =?UTF-8?q?=20the=20dash=20as=20a=20question=20mark,=20=E2=80=98=3F?= =?UTF-8?q?=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs index a4ee5d43..14319e1f 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/ContentExt.cs @@ -902,11 +902,13 @@ namespace VEPROMS.CSLA.Library string gg = MyGrid.Data.Substring(myIndex, myLength); if (newvalue.Contains(@"\u8209?")) { - Match m = Regex.Match(newvalue, @"(\\f[0-9]+)(\\u[0-9]{1,4}\?)(\\f[0-9]+ ?)"); - if (m == null) - newvalue = newvalue.Replace(@"\u8209?", "-"); - else - newvalue = newvalue.Replace(@"\u8209?", m.Groups[1].Value + @"\u8209?" + m.Groups[3].Value); + // B2022-058: Printing of '-' in transition in table prints as '?' instead of '-'. Wasn't using correct string to + // look for font character (was using newvalue, not gg) + Match m = Regex.Match(gg, @"(\\f[0-9]+)(\\u[0-9]{1,4}\?)(\\f[0-9]+ ?)"); + if (m == null) + newvalue = newvalue.Replace(@"\u8209?", "-"); + else + newvalue = newvalue.Replace(@"\u8209?", m.Groups[1].Value + @"\u8209?" + m.Groups[3].Value); } if (newvalue.Contains(@"\u8593?")) {