Added Volian Comment Annotation Type

Support having a transition at the beginning of the text
This commit is contained in:
Rich 2010-09-17 19:39:26 +00:00
parent f88bfe84fe
commit 3086c7ec5a
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -286,7 +286,7 @@ namespace Volian.Controls.Library
{
int ind =str.LastIndexOf("<START]");
ind = str.LastIndexOf(@"\", ind);
while (ind >= 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