From 09aa4e4ab0bece1f9b1f4a157ab793729eaa0139 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 2 Mar 2018 16:59:27 +0000 Subject: [PATCH] B2018-042 the property class was not printing on all of the pages it needed to be B2018-041 Setpoints were not being uppercased when they followed a dash character --- PROMS/Formats/fmtall/wst2all.xml | Bin 87358 -> 89800 bytes PROMS/Formats/fmtall/wstdcsall.xml | Bin 112128 -> 113782 bytes PROMS/Formats/fmtall/wstsamall.xml | Bin 87908 -> 90350 bytes .../Extension/DisplayText.cs | 16 +++++++++------- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/PROMS/Formats/fmtall/wst2all.xml b/PROMS/Formats/fmtall/wst2all.xml index af6414a5204208a6208f74891f22852af51fa0d8..dc24dfb7962fe300bf21a6596f1536ef66be42a8 100644 GIT binary patch delta 71 zcmdnDiuJ@^)`l&NNBAcf{HU7lAiy|dbHgbXmhEc<8UJx2iwQArUm(M{jSX4MjCp&3 I3gbBg0A@=bA^-pY delta 160 zcmX@Hmv!GN)`l&NNBAc{VU(KwK$B5LyqY0^A(%lINCq+Z14(BF9|lK;;OT{ojKY)t lh-}XjX3XLyTKQzVdsW;2C^2qhBVJ40qj}qZ=`x-(003WHE^7b) diff --git a/PROMS/Formats/fmtall/wstdcsall.xml b/PROMS/Formats/fmtall/wstdcsall.xml index 020fc4c6a48316c460d22a6cb511bf7a1b87dbc1..5d5490b3d63876b30dfa3775ac4c8bd77dc33710 100644 GIT binary patch delta 229 zcmZp8!}je5+Xk*3lPCNWU^Zm1pT01L(Vo$8^2e8=lS_82nI7QB$TNAtKbGl>Vi+AJ ze|jkb6BPi7*fAQTsGJ(W2v%vwXaW-7T(W~>$>f56252Tve-OU^kKR%k&Lf7}=&7GgeIRna?P-eP0UWj&K0!sU6+` diff --git a/PROMS/Formats/fmtall/wstsamall.xml b/PROMS/Formats/fmtall/wstsamall.xml index 8d36b794da08d44e24aac0d954d515b84414e782..65177ed5e0e5b839eb6aa793082fc8682e7d0216 100644 GIT binary patch delta 41 vcmaE|j`iI^)`l&N9|Sf%@L<`_CB%4!YtsW2mhER`8Mm>4#pb9oo-hOehEWl4 delta 148 zcmaENkoCzr)`l&N9|Wd<(qgoetY!#c2xia)l0gjqK+>7Phrtmj5OhPwy#rWG+-w}A=v2c3i^!a3;_|^D+vGq diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs index 689acf99..d0676dd5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs @@ -179,13 +179,6 @@ namespace VEPROMS.CSLA.Library @"\par\par\par "); } } - // Replace Hard Hyphens with normal hyphen so the PDF search for hyphens will work properly - if (text.Contains(@"\u8209?") && epMode == E_EditPrintMode.Print) - { - // Handle RTF Tokens followed immediately by a hard hyphen - text =Regex.Replace(text, @"(?<=\\[^\\?' \r\n\t]+)\\u8209\?", " -"); - text = text.Replace(@"\u8209?", "-"); - } // Replace backslash symbol with normal backslash so the PDF search for backslashes will work properly if (text.Contains(@"\u9586?") && epMode == E_EditPrintMode.Print) { @@ -282,6 +275,15 @@ namespace VEPROMS.CSLA.Library } } + // B2018-041 moved this logic here from DisplayText() so the it does not defeat the Upcase RO's after Dash logic + // Replace Hard Hyphens with normal hyphen so the PDF search for hyphens will work properly + if (text.Contains(@"\u8209?") && epMode == E_EditPrintMode.Print) + { + // Handle RTF Tokens followed immediately by a hard hyphen + text = Regex.Replace(text, @"(?<=\\[^\\?' \r\n\t]+)\\u8209\?", " -"); + text = text.Replace(@"\u8209?", "-"); + } + // if in print mode, view mode, or non-active richtextbox do replace words. Only if in // actual edit mode are replace words left as is. // But don't do ReplaceWords if the TurnOffReplaceWords format flag is set