mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
cleanup
This commit is contained in:
parent
029495590c
commit
bf257a5b82
@ -57,9 +57,7 @@ module Tartrazine
|
|||||||
ensure_nl: false,
|
ensure_nl: false,
|
||||||
}
|
}
|
||||||
property xml : String = ""
|
property xml : String = ""
|
||||||
|
|
||||||
property states = {} of String => State
|
property states = {} of String => State
|
||||||
|
|
||||||
property state_stack = ["root"]
|
property state_stack = ["root"]
|
||||||
|
|
||||||
# Turn the text into a list of tokens. The `usingself` parameter
|
# Turn the text into a list of tokens. The `usingself` parameter
|
||||||
|
@ -77,7 +77,7 @@ if options["-f"]
|
|||||||
|
|
||||||
if formatter.is_a?(Tartrazine::Html) && options["--css"]
|
if formatter.is_a?(Tartrazine::Html) && options["--css"]
|
||||||
File.open("#{options["-t"].as(String)}.css", "w") do |outf|
|
File.open("#{options["-t"].as(String)}.css", "w") do |outf|
|
||||||
outf.puts formatter.style_defs
|
outf << formatter.style_defs
|
||||||
end
|
end
|
||||||
exit 0
|
exit 0
|
||||||
end
|
end
|
||||||
@ -91,7 +91,7 @@ if options["-f"]
|
|||||||
puts output
|
puts output
|
||||||
else
|
else
|
||||||
File.open(options["-o"].as(String), "w") do |outf|
|
File.open(options["-o"].as(String), "w") do |outf|
|
||||||
outf.puts output
|
outf << output
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user