From 3086c7ec5a8b178f7662ddcf15be8e535248aa66 Mon Sep 17 00:00:00 2001 From: Rich Date: Fri, 17 Sep 2010 19:39:26 +0000 Subject: [PATCH] Added Volian Comment Annotation Type Support having a transition at the beginning of the text --- PROMS/DataLoader/Loader.cs | 1 + PROMS/Volian.Controls.Library/DisplayText.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/PROMS/DataLoader/Loader.cs b/PROMS/DataLoader/Loader.cs index 1c399968..39ef3f0b 100644 --- a/PROMS/DataLoader/Loader.cs +++ b/PROMS/DataLoader/Loader.cs @@ -100,6 +100,7 @@ namespace DataLoader AnnotationType at = AnnotationType.MakeAnnotationType("Reference", null); at = AnnotationType.MakeAnnotationType("Action Items", null); at = AnnotationType.MakeAnnotationType("Verification Required", null); + at = AnnotationType.MakeAnnotationType("Volian Comment", null); frmMain.Status = "Load veproms.ini"; XmlDocument d = cfg.LoadSystemIni(vepromspath); diff --git a/PROMS/Volian.Controls.Library/DisplayText.cs b/PROMS/Volian.Controls.Library/DisplayText.cs index 3f100164..a266ebfb 100644 --- a/PROMS/Volian.Controls.Library/DisplayText.cs +++ b/PROMS/Volian.Controls.Library/DisplayText.cs @@ -286,7 +286,7 @@ namespace Volian.Controls.Library { int ind =str.LastIndexOf("= 0 && str[ind - 1] != ' ') + while (ind > 0 && str[ind - 1] != ' ') { if (ind > 5 && str.Substring(0, ind).EndsWith(@"\u160?") || str.Substring(0, ind).ToLower().EndsWith(@"\'a0")) return str;//Already has a Hard Space