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:
authorhttp://jneen.net/ <jneen@jneen.net>2016-06-17 01:15:18 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2016-07-14 20:08:15 +0300
commitf82287e2cc3a57a21be74263be81716c5b3787b7 (patch)
tree7058ed776d3111f89638c2673f9af91041c52162 /lib/gitlab/highlight.rb
parentff7e679bca6a0303dcb3cb07dbe26aa32f6fb649 (diff)
use the local lexer variable to respect plain: ...
Diffstat (limited to 'lib/gitlab/highlight.rb')
-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