Skip to content

Commit

Permalink
Remove newlines from csv
Browse files Browse the repository at this point in the history
  • Loading branch information
nygrenh committed Aug 6, 2024
1 parent 9be2afb commit 0690a38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/views/points/index.csv.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<% require 'csv' %>
<%= CSV.generate(:force_quotes => true) do |csv|
arr = []
arr << :id if can?(:teach, @course)
Expand Down Expand Up @@ -27,4 +26,4 @@
arr += points + [total]
csv << arr
end
end.html_safe %>
end.html_safe %>

0 comments on commit 0690a38

Please sign in to comment.