Protect against nil @lang before fixing for css class names.

This commit is contained in:
Stephen McDonald
2014-03-18 08:41:49 +11:00
parent a38902b5a7
commit de9ce3437d

View File

@@ -53,7 +53,7 @@ eos
output = add_code_tags(
Pygments.highlight(code, :lexer => @lang, :options => @options),
@lang.gsub("+", "-")
@lang.to_s.gsub("+", "-")
)
output = context["pygments_prefix"] + output if context["pygments_prefix"]