summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2016-06-16 15:15:18 -0700
committerhttp://jneen.net/ <jneen@jneen.net>2016-07-14 10:08:15 -0700
commitf82287e2cc3a57a21be74263be81716c5b3787b7 (patch)
tree7058ed776d3111f89638c2673f9af91041c52162
parentff7e679bca6a0303dcb3cb07dbe26aa32f6fb649 (diff)
downloadgitlab-ce-f82287e2cc3a57a21be74263be81716c5b3787b7.tar.gz
use the local lexer variable to respect plain: ...
-rw-r--r--lib/gitlab/highlight.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/highlight.rb b/lib/gitlab/highlight.rb
index 84bd616d608..fbed65a055b 100644
--- a/lib/gitlab/highlight.rb
+++ b/lib/gitlab/highlight.rb
@@ -31,7 +31,7 @@ module Gitlab
continue = false
end
- @formatter.format(@lexer.lex(text, continue: continue)).html_safe
+ @formatter.format(lexer.lex(text, continue: continue)).html_safe
rescue
@formatter.format(Rouge::Lexers::PlainText.lex(text)).html_safe
end