mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-30 17:58:01 +01:00
Add Length and Lines properties to Paragraph
* Adds Length and Lines to `Paragraph`, `Markup` and `Text`. * Do not use Environment.NewLine
This commit is contained in:
committed by
Patrik Svensson
parent
e48ae9600a
commit
d1d94cdebe
@@ -73,7 +73,7 @@ namespace Spectre.Console
|
||||
throw new ArgumentNullException(nameof(console));
|
||||
}
|
||||
|
||||
console.Write(new Text(Environment.NewLine, Style.Plain));
|
||||
console.Write(new Text("\n", Style.Plain));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -104,7 +104,7 @@ namespace Spectre.Console
|
||||
throw new ArgumentNullException(nameof(text));
|
||||
}
|
||||
|
||||
console.Write(text + Environment.NewLine, style);
|
||||
console.Write(text + "\n", style);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user