From 1d0dee974c2303317e90c502f655f864205717d8 Mon Sep 17 00:00:00 2001 From: Kathy Date: Thu, 15 Sep 2022 12:33:31 +0000 Subject: [PATCH] B2022-114: ROs are not printing in Word document sections --- PROMS/VEPROMS.CSLA.Library/EnumExtensions.cs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/PROMS/VEPROMS.CSLA.Library/EnumExtensions.cs b/PROMS/VEPROMS.CSLA.Library/EnumExtensions.cs index d68472e4..3a1cb378 100644 --- a/PROMS/VEPROMS.CSLA.Library/EnumExtensions.cs +++ b/PROMS/VEPROMS.CSLA.Library/EnumExtensions.cs @@ -41,7 +41,16 @@ namespace VEPROMS.CSLA.Library // Remove any spaces due to split and if `_` found change it to space. public static string ToCleanString(this string str) - => str.Replace(" ", string.Empty) - .Replace('_', ' '); + { + string retval = str; + // B2022-114: ROs not printing in Word docs. spaces were removed, but this should only happen in unit designators such + // as . Keep the code that replaces the '_' with a space. + if (retval.ToUpper().StartsWith("