Skip to content

Commit

Permalink
Don't add sh_LANG class to pre elements when there is no LANG.
Browse files Browse the repository at this point in the history
  • Loading branch information
goncalossilva committed Mar 6, 2012
1 parent 4563f40 commit da71a23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/showoff.rb
Expand Up @@ -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
Expand Down

0 comments on commit da71a23

Please sign in to comment.