diff --git a/PROMS/DataLoader/Steps.cs b/PROMS/DataLoader/Steps.cs index d52201e7..03d4a7d2 100644 --- a/PROMS/DataLoader/Steps.cs +++ b/PROMS/DataLoader/Steps.cs @@ -32,6 +32,7 @@ namespace DataLoader if (userid == null || userid == "") userid = "Migration"; int tok = -1; //char[] chrarr = { '\x1', '\x2', '\x3', '\x5' }; + Textm = Textm.Replace("\\", ""); char[] chrarr = { '\x1', '\x2', '\x3' }; try { @@ -76,7 +77,7 @@ namespace DataLoader //content = Content.MakeContent(null, stptext, 20000 + int.Parse(newstptyp!=null?newstptyp:StepType),null, ManualPagebreak?ci.ToString():null, dts, userid); // 20000 flags step type item & 1 adjusts for 'base' in format files. int contenttype = (structtype == "R") ? 20040 : 20001 + int.Parse(newstptyp != null ? newstptyp : StepType); - content = Content.New(null, stptext, contenttype, null, ci.ToString(), dts, userid); + content = Content.New(null, stptext.Replace("", "\\\\"), contenttype, null, ci.ToString(), dts, userid); content.MyZContent.OldStepSequence = ProcNumber + "|" + stpseq; // Before we save it, handle RO & Transitions tokens. @@ -136,7 +137,7 @@ namespace DataLoader } if (txtdirty) { - content.Text = stptext; + content.Text = stptext.Replace("", "\\\\"); //content.Save(); } if (!content.IsSavable) ErrorRpt.ErrorReport(content);