diff --git a/src/lexer.cr b/src/lexer.cr index 31fc5e7..b99c821 100644 --- a/src/lexer.cr +++ b/src/lexer.cr @@ -57,9 +57,7 @@ module Tartrazine ensure_nl: false, } property xml : String = "" - property states = {} of String => State - property state_stack = ["root"] # Turn the text into a list of tokens. The `usingself` parameter diff --git a/src/main.cr b/src/main.cr index 35b3be0..4b517c6 100644 --- a/src/main.cr +++ b/src/main.cr @@ -77,7 +77,7 @@ if options["-f"] if formatter.is_a?(Tartrazine::Html) && options["--css"] File.open("#{options["-t"].as(String)}.css", "w") do |outf| - outf.puts formatter.style_defs + outf << formatter.style_defs end exit 0 end @@ -91,7 +91,7 @@ if options["-f"] puts output else File.open(options["-o"].as(String), "w") do |outf| - outf.puts output + outf << output end end end