This commit is contained in:
2011-03-10 13:30:13 +00:00
parent 579f1c9af5
commit a67f3dc6c7
2 changed files with 11 additions and 8 deletions

View File

@@ -46,9 +46,9 @@ namespace DataLoader
stptext = TextConvert.ConvertText(Textm, conv_caret);
else
stptext = TextConvert.ConvertText(Textm.Substring(0, tok), conv_caret);
//string stpTextOrg = stptext;
string seqcvt = TextConvert.ConvertSeq(stpseq);
string newstptyp = null;
bool ManualPagebreak = false;
char cbittst = StepType.PadRight(2)[0];
@@ -74,20 +74,21 @@ namespace DataLoader
// Before we save it, handle RO & Transitions tokens.
int tokrt = Textm.IndexOf('\x15');
bool txtdirty = false;
bool bIsROTable = false;
bool isROTable = false;
int rotype = 0;
if (tokrt > -1)
{
txtdirty = true;
stptext = MigrateRos(cn, stptext, seqcvt, content, docver, conv_caret);
stptext = MigrateRos(cn, stptext, seqcvt, content, docver, conv_caret, ref rotype);
stptext = stptext.TrimEnd(" ".ToCharArray());
// if this is a table RO, then save a flag in the config
bIsROTable = (Textm.Length == 1);
isROTable = (rotype == 2);
}
tokrt = Textm.IndexOf('\x3a6');
if (tokrt > -1)
{
txtdirty = true;
stptext = MigrateRos(cn, stptext, seqcvt, content, docver, conv_caret);
stptext = MigrateRos(cn, stptext, seqcvt, content, docver, conv_caret, ref rotype);
stptext = stptext.TrimEnd(" ".ToCharArray());
}
@@ -108,7 +109,7 @@ namespace DataLoader
//string fixStpText = FixStepText(stptext,content.Type);
string fixStpText = "";
if (IsATable(content.Type))
fixStpText = ConvertTableToGrid(stptext, content, fmt, bIsROTable);
fixStpText = ConvertTableToGrid(stptext, content, fmt, isROTable);
else
fixStpText = FixStepText(stptext);
if (fixStpText != stptext)