Commit 92d0ef6c authored by Stan Hu's avatar Stan Hu

Merge branch 'id-fix-rouge-warnings' into 'master'

Fix 2.7 warning related to rouge gem

See merge request gitlab-org/gitlab!52878
parents 40a412f6 a5321291
......@@ -8,9 +8,9 @@ module Rouge
# Creates a new <tt>Rouge::Formatter::HTMLGitlab</tt> instance.
#
# [+tag+] The tag (language) of the lexer used to generate the formatted tokens
def initialize(tag: nil)
def initialize(options = {})
@line_number = 1
@tag = tag
@tag = options[:tag]
end
def stream(tokens)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment