diff --git a/PROMS/Volian.Controls.Library/StepRTB.cs b/PROMS/Volian.Controls.Library/StepRTB.cs index 1565d1c2..c1903b11 100644 --- a/PROMS/Volian.Controls.Library/StepRTB.cs +++ b/PROMS/Volian.Controls.Library/StepRTB.cs @@ -585,8 +585,17 @@ namespace Volian.Controls.Library // representation (\'01). If you pass in the ASCII representation, it keeps the ASCII representation. // The following two lines replace hard spaces (ASCII) with the UNICODE represntation of Zero. // Other characters which behave like hard spaces are 28-31 and 128-159. - if (!activeMode && Rtf.Contains(@"\'a0")) - Rtf = Rtf.Replace(@"\'a0", @"\u1?"); + if (!activeMode && Rtf.Contains(@"\'a0")) + { + // The following 3 lines were added to fix B2016-069. The issue was in the RichTextBox for the Arial + // (Proportional) font, the hardspace appeared to be 2 spaces (really it was showing the space as the widest + // width character). So instead of a hard space, a single quote "'" was used to designate where the hardspace + // would be. This is only used for display, printing works. + if (_MyItemInfo.FormatStepData != null && _MyItemInfo.FormatStepData.Font.FontIsProportional()) + Rtf = Rtf.Replace(@"\'a0", "'"); + else + Rtf = Rtf.Replace(@"\'a0", @"\u1?"); + } OrigRTF = Rtf; _InitializingRTB = false;