mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 00:42:51 +08:00
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:
parent
aa59f6cd55
commit
58eff30787
@ -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[/]");
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user