This commit is contained in:
@@ -58,7 +58,8 @@ namespace DataLoader
|
||||
da.Dispose();
|
||||
return textm;
|
||||
}
|
||||
int tok = textm.IndexOf('\x15');
|
||||
char[] chrrotrn = { '\x15', '\x3a6' };
|
||||
int tok = textm.IndexOfAny(chrrotrn);
|
||||
while (tok > -1)
|
||||
{
|
||||
// found a token, add the roid & value into the string and
|
||||
@@ -79,6 +80,10 @@ namespace DataLoader
|
||||
// TODO: NEED TO PASS IN ConvertCaret FORMAT FLAG
|
||||
string roval = TextConvert.ConvertDOSSuperAndSubScripts(rofstinfo.ROFSTLookup.GetRoValue(ROID.Substring(0, 12).ToUpper()));
|
||||
roval = TextConvert.ReplaceUnicode(roval, conv_caret);
|
||||
if (textm[tok] == '\x3a6' && roval.IndexOf('\n')>-1) // figure - just get image name
|
||||
{
|
||||
roval = roval.Substring(0, roval.IndexOf('\n'));
|
||||
}
|
||||
|
||||
//if (roval.Contains("\r") || roval.Contains("\n"))
|
||||
// Console.WriteLine("RO has new Lines");
|
||||
@@ -111,7 +116,7 @@ namespace DataLoader
|
||||
da.Dispose();
|
||||
}
|
||||
else
|
||||
tok = textm.IndexOf('\x15', beg);
|
||||
tok = textm.IndexOf('\x15', beg); // there would only be one figure - only check for ro after 1st time
|
||||
}
|
||||
if (beg <= textm.Length - 1)
|
||||
rotxt.Append(textm.Substring(beg, textm.Length - beg));
|
||||
|
Reference in New Issue
Block a user