app/models/report.rb
# NOTE: Tomedo somehow sends both carriage return and newlines. We're
# replacing all carriage returns with new lines since they look weird in PDF
# documents.
Tomedo somehow sends both carriage return and newlines. We're
replacing all carriage returns with new lines since they look weird in PDF
documents.
Tomedo somehow sends both carriage return and newlines . We ' re replacing all carriage returns with new lines since they look weird in PDF documents .
def replace_carriage_returns
    %i(anamnesis diagnosis findings evaluation procedure).each do |attr|
      self[attr].gsub!("\r", "\n") if self[attr].present?
    end
  end
def replace_carriage_returns %i( anamnesis diagnosis findings evaluation procedure ) . each do | attr | self [ attr ] . gsub! ( "\r" , "\n" ) if self [ attr ] . present? end end
NOTE: Tomedo somehow sends both carriage return and newlines.
NOTE : Tomedo somehow sends both carriage return and newlines .