Commit 4dc8f8cf authored by Alex Kalderimis's avatar Alex Kalderimis

Use squish rather than gsub

parent 03614168
......@@ -110,7 +110,7 @@ module Gitlab
# Template methods
def render_row(*values)
"| #{values.map { |val| val.to_s.gsub(/\n+/, ' ') }.join(' | ')} |"
"| #{values.map { |val| val.to_s.squish }.join(' | ')} |"
end
def render_name(object, owner = nil)
......
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