diff --git a/PROMS/XYPlots/XYPlots.cs b/PROMS/XYPlots/XYPlots.cs index 1c6537f2..423c34f1 100644 --- a/PROMS/XYPlots/XYPlots.cs +++ b/PROMS/XYPlots/XYPlots.cs @@ -331,7 +331,9 @@ namespace XYPlots private int getint() { int retval; - retval = Convert.ToInt32(NextPiece(), 10); + string np = NextPiece(); + np = Regex.Replace(np, "[^0-9]", ""); + retval = Convert.ToInt32(np, 10); return retval; } // A 'special' isWhiteSpaceDelta, NextPieceDelta, and getdoubleDelta was added because Wolf Creek @@ -459,6 +461,7 @@ namespace XYPlots // some data only had carriage return, replace these with cr/nl so that following code // will work Buff = Buff.Replace(">\r<", ">\r\n<"); + Buff = Buff.Replace("><", ">\r\n<"); // some data had cr/cr/nl, change to cr/nl Buff = Buff.Replace("\r\r\n", "\r\n");