Commit c0385488 authored by Rubén Dávila's avatar Rubén Dávila

Fix broken spec. #3945

parent f1f9b5f7
...@@ -113,7 +113,8 @@ module DiffHelper ...@@ -113,7 +113,8 @@ module DiffHelper
if line.blank? if line.blank?
"  ".html_safe "  ".html_safe
else else
line.try(:html_safe) # Return line if it isn't a String, it helps when it's Numeric
line.is_a?(String) ? line.html_safe : line
end end
end end
......
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