Commit 3cfde372 by Shou Ya Committed by Cuong Tran

Escape newline character in index expression (#545)

parent 3c90753a
...@@ -374,7 +374,7 @@ module AnnotateModels ...@@ -374,7 +374,7 @@ module AnnotateModels
if index.try(:orders) && index.orders[col.to_s] if index.try(:orders) && index.orders[col.to_s]
"#{col} #{index.orders[col.to_s].upcase}" "#{col} #{index.orders[col.to_s].upcase}"
else else
col.to_s col.to_s.gsub("\r", '\r').gsub("\n", '\n')
end end
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