lib/volt/server/html_parser/sandlebars_parser.rb in volt-0.9.1 vs lib/volt/server/html_parser/sandlebars_parser.rb in volt-0.9.2
- old
+ new
@@ -154,19 +154,15 @@
return
end
# Some tags close themselves when a new one of themselves is reached.
# ex, a tr will close the previous tr
- if CLOSE_SELF[tag_name] && last == tag_name
- end_tag(nil, tag_name)
- end
+ end_tag(nil, tag_name) if CLOSE_SELF[tag_name] && last == tag_name
unary = EMPTY[tag_name] || !unary.blank?
# Section tag's are also unary
- unless unary || section_tag
- @stack.push(tag_name)
- end
+ @stack.push(tag_name) unless unary || section_tag
if @handler.respond_to?(:start_tag)
attributes = {}
# Take the rest string and extract the attributes, filling in any