mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
build_plain_tree doesn't build a plain tree anymore... now it's just build_tree.
git-svn-id: svn://hamptoncatlin.com/haml/trunk@234 7063305b-7217-0410-af8c-cdc13e5119b9
This commit is contained in:
parent
64ee1f0dbb
commit
ecfb252cdf
1 changed files with 3 additions and 3 deletions
|
@ -41,13 +41,13 @@ module Sass
|
|||
def render
|
||||
root = Tree::Node.new
|
||||
first_line, first_tabs = next_line
|
||||
build_plain_tree(first_line, root, first_tabs)
|
||||
build_tree(first_line, root, first_tabs)
|
||||
root.to_s
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def build_plain_tree(line, node, tabs)
|
||||
def build_tree(line, node, tabs)
|
||||
current_tabs = tabs
|
||||
tabs ||= 0
|
||||
|
||||
|
@ -59,7 +59,7 @@ module Sass
|
|||
|
||||
line, current_tabs = next_line
|
||||
else # current_tabs > tabs
|
||||
line, current_tabs = build_plain_tree(line, node.children[-1], current_tabs)
|
||||
line, current_tabs = build_tree(line, node.children[-1], current_tabs)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue