mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Get rid of an unnecessary parameter in Haml::Precompiler.
This commit is contained in:
parent
f84871b124
commit
b7ada8524e
1 changed files with 4 additions and 4 deletions
|
@ -277,7 +277,7 @@ END
|
||||||
|
|
||||||
# Adds <tt>text</tt> to <tt>@buffer</tt> with appropriate tabulation
|
# Adds <tt>text</tt> to <tt>@buffer</tt> with appropriate tabulation
|
||||||
# without parsing it.
|
# without parsing it.
|
||||||
def push_merged_text(text, tab_change = 0, try_one_liner = false)
|
def push_merged_text(text, tab_change = 0)
|
||||||
@merged_text << (@options[:ugly] ? text : "#{' ' * @output_tabs}#{text}")
|
@merged_text << (@options[:ugly] ? text : "#{' ' * @output_tabs}#{text}")
|
||||||
@tab_change += tab_change
|
@tab_change += tab_change
|
||||||
end
|
end
|
||||||
|
@ -287,8 +287,8 @@ END
|
||||||
@merged_text << text
|
@merged_text << text
|
||||||
end
|
end
|
||||||
|
|
||||||
def push_text(text, tab_change = 0, try_one_liner = false)
|
def push_text(text, tab_change = 0)
|
||||||
push_merged_text("#{text}\n", tab_change, try_one_liner)
|
push_merged_text("#{text}\n", tab_change)
|
||||||
end
|
end
|
||||||
|
|
||||||
def flush_merged_text
|
def flush_merged_text
|
||||||
|
@ -566,7 +566,7 @@ END
|
||||||
open_tag << "#{value}</#{tag_name}>" if tag_closed
|
open_tag << "#{value}</#{tag_name}>" if tag_closed
|
||||||
open_tag << "\n" unless parse
|
open_tag << "\n" unless parse
|
||||||
|
|
||||||
push_merged_text(open_tag, tag_closed || self_closing ? 0 : 1, parse)
|
push_merged_text(open_tag, tag_closed || self_closing ? 0 : 1)
|
||||||
return if tag_closed
|
return if tag_closed
|
||||||
else
|
else
|
||||||
flush_merged_text
|
flush_merged_text
|
||||||
|
|
Loading…
Add table
Reference in a new issue