mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
HTML formatter option: tab_width
This commit is contained in:
parent
4ced996f90
commit
e6a292ade0
@ -8,7 +8,8 @@ module Tartrazine
|
|||||||
property class_prefix : String = ""
|
property class_prefix : String = ""
|
||||||
|
|
||||||
# property with_classes : Bool = true
|
# property with_classes : Bool = true
|
||||||
# property tab_width = 8
|
property tab_width = 8
|
||||||
|
|
||||||
# property surrounding_pre : Bool = true
|
# property surrounding_pre : Bool = true
|
||||||
# property wrap_long_lines : Bool = false
|
# property wrap_long_lines : Bool = false
|
||||||
# property line_numbers : Bool = false
|
# property line_numbers : Bool = false
|
||||||
@ -67,6 +68,7 @@ module Tartrazine
|
|||||||
outp << "font-style: normal;" if style.italic == false
|
outp << "font-style: normal;" if style.italic == false
|
||||||
outp << "text-decoration: underline;" if style.underline
|
outp << "text-decoration: underline;" if style.underline
|
||||||
outp << "text-decoration: none;" if style.underline == false
|
outp << "text-decoration: none;" if style.underline == false
|
||||||
|
outp << "tab-size: #{tab_width};" if token == "Background"
|
||||||
|
|
||||||
outp << "}"
|
outp << "}"
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user