From 66e7690661e43c366cb74716918622d875d5c0ec Mon Sep 17 00:00:00 2001 From: Kathy Date: Fri, 23 Jul 2010 15:55:59 +0000 Subject: [PATCH] --- PROMS/Volian.Controls.Library/DisplayText.cs | 1 + PROMS/Volian.Print.Library/VlnSvgPageHelper.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Controls.Library/DisplayText.cs b/PROMS/Volian.Controls.Library/DisplayText.cs index ff1a8a15..9981682a 100644 --- a/PROMS/Volian.Controls.Library/DisplayText.cs +++ b/PROMS/Volian.Controls.Library/DisplayText.cs @@ -231,6 +231,7 @@ namespace Volian.Controls.Library string beforeRO = StaticStripRtfCommands(text.Substring(0, g.Index)); string afterRO = StaticStripRtfCommands(text.Substring(g.Index + g.Length)); string newvalue = DoROFormatFlags(g.ToString(), beforeRO, afterRO); + newvalue = newvalue.Replace(" ", @"\u160?"); if (g.ToString() != newvalue) text = text.Substring(0, g.Index) + newvalue + text.Substring(g.Index + g.Length); } diff --git a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs index 57665193..72e6a3b2 100644 --- a/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs +++ b/PROMS/Volian.Print.Library/VlnSvgPageHelper.cs @@ -125,7 +125,7 @@ namespace Volian.Print.Library set { _MySection = value; - MySectionTitle = (_MySection.DisplayNumber == null ? "" : _MySection.DisplayNumber + " - ") + _MySection.DisplayText; + MySectionTitle = ((_MySection.DisplayNumber ?? "")=="" ? "" : _MySection.DisplayNumber + " - ") + _MySection.DisplayText; MySvg = BuildSvg(_MySection); } }