Add support for recording console output

This commit adds support for recording console output
as well as exporting it to either text or HTML. A user can
also provide their own encoder if they wish.
This commit is contained in:
Patrik Svensson
2020-09-21 00:44:47 +02:00
committed by Patrik Svensson
parent b197f278ed
commit cd0d182f12
16 changed files with 481 additions and 24 deletions

View File

@ -72,7 +72,7 @@ namespace Spectre.Console.Rendering
}
Text = text.NormalizeLineEndings();
Style = style;
Style = style ?? throw new ArgumentNullException(nameof(style));
IsLineBreak = lineBreak;
IsWhiteSpace = string.IsNullOrWhiteSpace(text);
}