fix br issue
This commit is contained in:
parent
97e0766168
commit
ac3b22ef5b
|
|
@ -110,7 +110,7 @@ module Admin::PropertyHiresHelper
|
|||
when "datetime"
|
||||
print_format = print_format.gsub("{#{field_name}}", phire.send(field_name).strftime("%Y/%m/%d %H:%M")) rescue print_format.gsub("{#{field_name}}", "")
|
||||
else
|
||||
print_format = print_format.gsub("{#{field_name}}", phire.send(field_name).to_s) rescue print_format.gsub("{#{field_name}}", "")
|
||||
print_format = print_format.gsub("{#{field_name}}", phire.send(field_name).to_s).gsub(/\r\n|\r|\n/, "<br />") rescue print_format.gsub("{#{field_name}}", "")
|
||||
end
|
||||
else
|
||||
field = PHireField.where(:key => field_name, :property_id => phire.property_id).first
|
||||
|
|
|
|||
Loading…
Reference in New Issue