Preserve line breaks

This commit is contained in:
Patrik Svensson
2020-08-10 11:35:01 +02:00
committed by Patrik Svensson
parent f4d1796e40
commit 22d4af4482
3 changed files with 21 additions and 3 deletions

View File

@ -18,6 +18,7 @@ namespace Spectre.Console.Tests
public Color Background { get; set; }
public StringWriter Writer { get; }
public string RawOutput => Writer.ToString();
public string Output => Writer.ToString().TrimEnd('\n');
public IReadOnlyList<string> Lines => Output.Split(new char[] { '\n' });