This commit is contained in:
2024-08-19 12:43:51 -03:00
parent 5b0a1789dc
commit f435d7df21
4 changed files with 4 additions and 6 deletions

View File

@ -37,10 +37,9 @@ module Tartrazine
def format(text : String, lexer : Lexer) : String
outp = String::Builder.new("")
format(text, lexer, outp)
return outp.to_s
outp.to_s
end
def format(text : String, lexer : Lexer, io : IO) : Nil
pre, post = wrap_standalone
io << pre if standalone?