LineTreeGuide should not fall back to ASCII

If the user's environment didn't support unicode, we used
to fall back to using the AsciiTreeGuide if LineTreeGuide
was being used (which it is by default). This commit removes
that fallback since the characters used in LineTreeGuide is
covered by extended ASCII, which SHOULD be fine in almost all
scenarios.

Closes #324
This commit is contained in:
Patrik Svensson 2021-07-10 21:09:59 +02:00 committed by Phil Scott
parent aa59f6cd55
commit 58eff30787
2 changed files with 1 additions and 4 deletions

View File

@ -16,7 +16,7 @@ namespace Spectre.Console.Examples
// Create the tree
var tree = new Tree("Root")
.Style(Style.Parse("red"))
.Guide(TreeGuide.BoldLine);
.Guide(TreeGuide.Line);
// Add some nodes
var foo = tree.AddNode("[yellow]Foo[/]");

View File

@ -7,9 +7,6 @@ namespace Spectre.Console.Rendering
/// </summary>
public sealed class LineTreeGuide : TreeGuide
{
/// <inheritdoc/>
public override TreeGuide? SafeTreeGuide => Ascii;
/// <inheritdoc/>
public override string GetPart(TreeGuidePart part)
{