lib/rabbit/theme/footer-comment/footer-comment.rb in rabbit-1.0.2 vs lib/rabbit/theme/footer-comment/footer-comment.rb in rabbit-1.0.3

- old
+ new

@@ -33,17 +33,18 @@ end end comments << comment end - redraw_time = Time.now + redraw_time = nil slides.add_post_draw_proc(proc_name) do |slide, canvas, x, y, w, h, simulation| unless simulation unless comments.empty? + redraw_time ||= Time.now content = comments.first text = Text.new(ERB::Util.h(content.strip.gsub("\n", " "))) if Time.now - redraw_time > @footer_comment_min_display_time - redraw_time = Time.now + redraw_time = nil if @footer_comment_keep_last_comment comments.shift if comments.size > 1 else comments.shift end