How can I eliminate excess return characters in rails erb? <%- -%> doesn't seem to work.
===

I am using .csv.erb files to generate some CSV exports, and no matter what I try, I get extraneous return characters in the downloaded file. 

I "think" the person I'm writing the app for uses access to do some other stuff, so these reports might be used by ms access, and I'm not sure the skill level of the one writing that connection. So, I'm concerned those extra return characters might break things for them. 

Is there any way?

The only thing I've found is to literally jam all non printed template code together:
<%= CSV.generate_line(["Field 1", "Field 2", "..."]).html_safe %><%- @stuff.each do |group, list| -%><%- list.each  do |ref|  -%><%= CSV.generate_line([ ref.name,
				ref.field1,
				ref.field2,
				other_fields]).html_safe %><%- end -%><%- end -%>
But...that's terrible for readability. However, no matter how I format those ends (and the outer loop's <% and %> tags) I get extra return characters in the file. 

I've tried: <%- -%>, <% -%> but they don't seem to help. The erb is still passing on the return character (which I thought was removed by the -%>, but that's not what I'm seeing)

I'm experiencing this using rails 3.2.1 on OSX. 