From ece3d4163aa81ee7356282b52774b5a274c6b024 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Fri, 9 Aug 2024 11:03:32 -0300 Subject: [PATCH] Bug --- src/formatter.cr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/formatter.cr b/src/formatter.cr index de34082..a64863d 100644 --- a/src/formatter.cr +++ b/src/formatter.cr @@ -44,7 +44,8 @@ module Tartrazine theme.styles.has_key?(parent) }] end - colorized = text.colorize(s.color.try &.colorize) + colorized = text.colorize + s.color.try { |c| colorized = colorized.fore(c.colorize) } # Intentionally not setting background color colorized.mode(:bold) if s.bold colorized.mode(:italic) if s.italic