lib/lookbook/code_formatter.rb in lookbook-0.4.8 vs lib/lookbook/code_formatter.rb in lookbook-0.5.0.beta.0
- old
+ new
@@ -5,15 +5,15 @@
end
def stream(tokens, &block)
token_lines(tokens).each_with_index do |line_tokens, i|
yield "<div class='line'>"
- yield "<div class='line-number'>#{i}</div>" if @opts[:line_numbers]
- yield "<div class='line-content'>"
+ yield "<span class='line-number'>#{i}</span>" if @opts[:line_numbers]
+ yield "<span class='line-content'>"
line_tokens.each do |token, value|
yield span(token, value)
end
- yield "</div>"
+ yield "</span>"
yield "</div>"
end
end
end
end