Commit 272eeb10 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Merge branch 'formatter-memory-optimisation' into 'master'

Reduce object generation in HTMLGitlab

See merge request gitlab-org/gitlab!46979
parents fd75d74a 9a7c1352
......@@ -20,7 +20,7 @@ module Rouge
is_first = false
yield %(<span id="LC#{@line_number}" class="line" lang="#{@tag}">)
line.each { |token, value| yield span(token, value.chomp) }
line.each { |token, value| yield span(token, value.chomp! || value) }
yield %(</span>)
@line_number += 1
......
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