fix br issue

This commit is contained in:
rulingcom 2025-12-04 19:34:34 +08:00
parent 97e0766168
commit ac3b22ef5b
1 changed files with 1 additions and 1 deletions

View File

@ -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