From 56c2b4599a45fb4804996a00f02573321814d469 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Sat, 21 Sep 2024 12:55:29 -0300 Subject: [PATCH] fix: HTML formatter was setting bold wrong --- src/formatters/html.cr | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/formatters/html.cr b/src/formatters/html.cr index 8495205..457ff36 100644 --- a/src/formatters/html.cr +++ b/src/formatters/html.cr @@ -106,8 +106,7 @@ module Tartrazine # These are true/false/nil outp << "border: none;" if style.border == false - outp << "font-weight: bold;" if style.bold - outp << "font-weight: #{@weight_of_bold};" if style.bold == false + outp << "font-weight: #{@weight_of_bold};" if style.bold outp << "font-style: italic;" if style.italic outp << "font-style: normal;" if style.italic == false outp << "text-decoration: underline;" if style.underline