From d226bb70cf63b0a33750238f9fc0bb1f10bbcfa3 Mon Sep 17 00:00:00 2001 From: Alexander Machehin Date: Mon, 8 Apr 2013 21:54:46 +0600 Subject: [PATCH] [#19] fix undefined method 'downcase' for nil:NilClass --- lib/redcarpet/render/gitlab_html.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/redcarpet/render/gitlab_html.rb b/lib/redcarpet/render/gitlab_html.rb index 8234e2675..a3e3e6724 100644 --- a/lib/redcarpet/render/gitlab_html.rb +++ b/lib/redcarpet/render/gitlab_html.rb @@ -19,9 +19,10 @@ class Redcarpet::Render::GitlabHTML < Redcarpet::Render::HTML # # ruby code here # + code_class = "class=\"#{language.downcase}\"" if language.present? <<-HTML -
#{code}
+
#{code}
HTML end