mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 00:42:51 +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));
|
||||
}
|
||||
|
||||
Text = text.NormalizeLineEndings();
|
||||
Text = Emoji.Replace(text).NormalizeLineEndings();
|
||||
Style = style;
|
||||
IsLineBreak = lineBreak;
|
||||
IsWhiteSpace = string.IsNullOrWhiteSpace(text);
|
||||
|
Loading…
x
Reference in New Issue
Block a user