Fix ERB carriage return generation