mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-17 17:32:50 +08:00
Replace emoji in segment text
This commit is contained in:
parent
fea8a36e8a
commit
b7f654cd7f
@ -72,7 +72,7 @@ namespace Spectre.Console.Rendering
|
|||||||
throw new ArgumentNullException(nameof(text));
|
throw new ArgumentNullException(nameof(text));
|
||||||
}
|
}
|
||||||
|
|
||||||
Text = text.NormalizeLineEndings();
|
Text = Emoji.Replace(text).NormalizeLineEndings();
|
||||||
Style = style;
|
Style = style;
|
||||||
IsLineBreak = lineBreak;
|
IsLineBreak = lineBreak;
|
||||||
IsWhiteSpace = string.IsNullOrWhiteSpace(text);
|
IsWhiteSpace = string.IsNullOrWhiteSpace(text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user