diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-06-16 15:15:18 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-07-14 10:08:15 -0700 |
commit | f82287e2cc3a57a21be74263be81716c5b3787b7 (patch) | |
tree | 7058ed776d3111f89638c2673f9af91041c52162 /lib | |
parent | ff7e679bca6a0303dcb3cb07dbe26aa32f6fb649 (diff) | |
download | gitlab-ce-f82287e2cc3a57a21be74263be81716c5b3787b7.tar.gz |
use the local lexer variable to respect plain: ...
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/highlight.rb | 2 |
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 |