Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-01-17 21:06:12 +0300
committerDouwe Maan <douwe@selenight.nl>2017-01-17 21:06:12 +0300
commit72620ea1b725f8776087e516cdc3dd13f5f8e075 (patch)
tree53330491fcf602b74c1f3c68bb07dcecd091fb7e /lib/banzai
parent5adf080880521826b4e0f4c3c5d11ea15da458dd (diff)
Fix SyntaxHighlightFilter spec
Diffstat (limited to 'lib/banzai')
-rw-r--r--lib/banzai/filter/syntax_highlight_filter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/banzai/filter/syntax_highlight_filter.rb b/lib/banzai/filter/syntax_highlight_filter.rb
index 933103abb92..a447e2b8bff 100644
--- a/lib/banzai/filter/syntax_highlight_filter.rb
+++ b/lib/banzai/filter/syntax_highlight_filter.rb
@@ -27,6 +27,7 @@ module Banzai
css_classes << " js-syntax-highlight #{lang}"
rescue
+ lang = nil
# Gracefully handle syntax highlighter bugs/errors to ensure
# users can still access an issue/comment/etc.
end