From e6a292ade08ac15790f7dad5ce79bb04a2aaf86d Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Fri, 9 Aug 2024 12:29:56 -0300 Subject: [PATCH] HTML formatter option: tab_width --- src/formatters/html.cr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/formatters/html.cr b/src/formatters/html.cr index e978649..5ac115e 100644 --- a/src/formatters/html.cr +++ b/src/formatters/html.cr @@ -8,7 +8,8 @@ module Tartrazine property class_prefix : String = "" # property with_classes : Bool = true - # property tab_width = 8 + property tab_width = 8 + # property surrounding_pre : Bool = true # property wrap_long_lines : Bool = false # property line_numbers : Bool = false @@ -67,6 +68,7 @@ module Tartrazine outp << "font-style: normal;" if style.italic == false outp << "text-decoration: underline;" if style.underline outp << "text-decoration: none;" if style.underline == false + outp << "tab-size: #{tab_width};" if token == "Background" outp << "}" end