mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-06 12:38:15 +08:00
Fix line break regression
In commit d1d94cd
, we accidentally introduced a regression
since conhost requires all line breaks to be `\r\n`.
This commit is contained in:

committed by
Phil Scott

parent
1dfc6bdadc
commit
6549436356
@ -1,5 +1,4 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Spectre.Console.Testing
|
||||
{
|
||||
@ -21,7 +20,7 @@ namespace Spectre.Console.Testing
|
||||
}
|
||||
|
||||
var result = new List<string>();
|
||||
foreach (var line in value.Split(new[] { '\n' }))
|
||||
foreach (var line in value.NormalizeLineEndings().Split(new[] { '\n' }))
|
||||
{
|
||||
result.Add(line.TrimEnd());
|
||||
}
|
||||
|
Reference in New Issue
Block a user