Skip to content
Browse files

Don't add sh_LANG class to pre elements when there is no LANG.

  • Loading branch information...
1 parent 4563f40 commit da71a23bc05a78c15683784566bbc9baa286c695 @goncalossilva goncalossilva committed Mar 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/showoff.rb
View
2 lib/showoff.rb
@@ -300,7 +300,7 @@ def update_commandline_code(slide)
lines = out.split("\n")
if lines.first.strip[0, 3] == '@@@'
lang = lines.shift.gsub('@@@', '').strip
- pre.set_attribute('class', 'sh_' + lang.downcase)
+ pre.set_attribute('class', 'sh_' + lang.downcase) if !lang.empty?
code.content = lines.join("\n")
end
end

0 comments on commit da71a23

Please sign in to comment.
Something went wrong with that request. Please try again.