mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-20 05:48:14 +08:00
Emit native line breaks
This commit is contained in:
@ -70,6 +70,11 @@ namespace Spectre.Console.Internal
|
||||
|
||||
public static int GetCellLength(Encoding encoding, char rune)
|
||||
{
|
||||
if (rune == '\r' || rune == '\n')
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
// Is it represented by a single byte?
|
||||
// In that case we don't have to calculate the
|
||||
// actual cell width.
|
||||
|
Reference in New Issue
Block a user