mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 21:38:16 +08:00
Fixed incorrect decoration check from Bold to Italic in HtmlEncoder.BuildCss
This commit is contained in:
@ -98,7 +98,7 @@ internal sealed class HtmlEncoder : IAnsiConsoleEncoder
|
||||
css.Add("font-weight: bold");
|
||||
}
|
||||
|
||||
if ((style.Decoration & Decoration.Bold) != 0)
|
||||
if ((style.Decoration & Decoration.Italic) != 0)
|
||||
{
|
||||
css.Add("font-style: italic");
|
||||
}
|
||||
|
Reference in New Issue
Block a user