diff --git a/Raptorious.SharpMt940Lib/Mt940Parser.cs b/Raptorious.SharpMt940Lib/Mt940Parser.cs index db6b224..91af5e5 100644 --- a/Raptorious.SharpMt940Lib/Mt940Parser.cs +++ b/Raptorious.SharpMt940Lib/Mt940Parser.cs @@ -375,7 +375,7 @@ private static void Parse86Details(Transaction tr, Parameters mt940Params, bool /// /// This method accepts mt940 data file given as a string. The string - /// is split by Environment.NewLine as each line contains a command. + /// is split into lines as each line contains a command. /// /// Every line that starts with a ':' is a mt940 'command'. Lines that /// does not start with a ':' belongs to the previous command. @@ -390,7 +390,7 @@ private static ICollection CreateStringTransactions(IMt940Format forma { // Split on the new line seperator. In a MT940 messsage, every command is on a seperate line. // Assumption is made it is in the same format as the enviroments new line. - var tokenized = data.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); + var tokenized = data.Split(new string[] { "\r\n", "\n" }, StringSplitOptions.RemoveEmptyEntries); // Create an empty list of string arrays. var transactions = new List();