From 499cf7f623c9f52e7002259d923e48e9ef399a46 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Tue, 6 Aug 2024 20:16:52 -0300 Subject: [PATCH] Use token abbrevs in HTML --- src/formatter.cr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/formatter.cr b/src/formatter.cr index daecb05..6e92e0b 100644 --- a/src/formatter.cr +++ b/src/formatter.cr @@ -1,5 +1,6 @@ -require "./tartrazine.cr" +require "./constantes.cr" require "./styles.cr" +require "./tartrazine.cr" module Tartrazine # This is the base class for all formatters. @@ -54,6 +55,7 @@ module Tartrazine # Given a token type, return the CSS class to use. def get_css_class(token, theme) + token = Abbreviations[token] return token if theme.styles.has_key?(token) # Themes don't contain information for each specific