From 7909d723871c70c9fdad1fd09a8b4c233473c54f Mon Sep 17 00:00:00 2001 From: _aLfa_ Date: Wed, 17 Sep 2014 22:26:53 +0200 Subject: [PATCH] Fix a test using the NewLineChars --- src/Test/SubtitleFormatsTest.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Test/SubtitleFormatsTest.cs b/src/Test/SubtitleFormatsTest.cs index bc14026be..5208db7df 100644 --- a/src/Test/SubtitleFormatsTest.cs +++ b/src/Test/SubtitleFormatsTest.cs @@ -627,7 +627,7 @@ Dialogue: Marked=0,0:00:01.00,0:00:03.00,Default,NTP,0000,0000,0000,!Effect," + var sub2 = new Subtitle(); List lines = new List(); - foreach (string line in text.Split(Utilities.NewLineChars, StringSplitOptions.RemoveEmptyEntries)) + foreach (string line in text.Split(Environment.NewLine.ToCharArray(), StringSplitOptions.RemoveEmptyEntries)) lines.Add(line); target.LoadSubtitle(sub2, lines, null);