mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
Make formatter a bit more convenient
This commit is contained in:
parent
9042138053
commit
4a598a575b
@ -34,7 +34,7 @@ module Tartrazine
|
||||
@weight_of_bold : Int32 = 600)
|
||||
end
|
||||
|
||||
def format(text : String, lexer : Lexer, io : IO) : Nil
|
||||
def format(text : String, lexer : Lexer, io : IO?) : String?
|
||||
outp = io.nil? ? String::Builder.new("") : io
|
||||
pre, post = wrap_standalone
|
||||
outp << pre if standalone?
|
||||
|
Loading…
Reference in New Issue
Block a user