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