From f435d7df21bcd7e71764f6880f84087e81af6bd6 Mon Sep 17 00:00:00 2001 From: Roberto Alsina Date: Mon, 19 Aug 2024 12:43:51 -0300 Subject: [PATCH] 0.5.1 --- shard.yml | 2 +- src/formatters/ansi.cr | 2 +- src/formatters/html.cr | 3 +-- src/formatters/json.cr | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/shard.yml b/shard.yml index 47654bb..2e83cec 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: tartrazine -version: 0.4.0 +version: 0.5.1 authors: - Roberto Alsina diff --git a/src/formatters/ansi.cr b/src/formatters/ansi.cr index 8efeb25..fc9e608 100644 --- a/src/formatters/ansi.cr +++ b/src/formatters/ansi.cr @@ -14,7 +14,7 @@ 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, outp : IO) : Nil diff --git a/src/formatters/html.cr b/src/formatters/html.cr index 4217cdd..6fab641 100644 --- a/src/formatters/html.cr +++ b/src/formatters/html.cr @@ -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? diff --git a/src/formatters/json.cr b/src/formatters/json.cr index c9d6a39..5ba28ea 100644 --- a/src/formatters/json.cr +++ b/src/formatters/json.cr @@ -7,10 +7,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 tokenizer = Tokenizer.new(lexer, text) io << Tartrazine::Lexer.collapse_tokens(tokenizer.to_a).to_json