lib/showoff.rb in showoff-0.11.1 vs lib/showoff.rb in showoff-0.11.2
- old
+ new
@@ -320,9 +320,11 @@
# extract id, defaulting to none
id = nil
content_classes.delete_if { |x| x =~ /^#([\w-]+)/ && id = $1 }
id = name.dup unless id
id.gsub!(/[^-A-Za-z0-9_]/, '_') # valid HTML id characters
+ id << seq.to_s if seq
+
@logger.debug "id: #{id}" if id
@logger.debug "classes: #{content_classes.inspect}"
@logger.debug "transition: #{transition}"
@logger.debug "tpl: #{slide.tpl} " if slide.tpl
@logger.debug "bg: #{slide.bg}" if slide.bg