From 88f56749177126dcb6d7017ef821a8c7574737d1 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Mon, 12 Aug 2024 21:02:17 -0300 Subject: [PATCH] Tiny bug --- src/formatters/html.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/formatters/html.cr b/src/formatters/html.cr index 20f41a2..64ae4ed 100644 --- a/src/formatters/html.cr +++ b/src/formatters/html.cr @@ -15,7 +15,7 @@ module Tartrazine property? standalone : Bool = false property? surrounding_pre : Bool = true property? wrap_long_lines : Bool = false - property? weight_of_bold : Int32 = 600 + property weight_of_bold : Int32 = 600 def format(text : String, lexer : Lexer, theme : Theme) : String text = format_text(text, lexer, theme) @@ -73,7 +73,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 == false outp << "font-style: italic;" if style.italic outp << "font-style: normal;" if style.italic == false outp << "text-decoration: underline;" if style.underline