From 3364e78398c62c55701b6dea5a7294c05ca0eb2f Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Fri, 12 Feb 2016 17:10:04 -0300 Subject: [PATCH] comment_group: force quotes when exporting comments --- plugins/comment_group/lib/comment_group_plugin/comments_report.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/comment_group/lib/comment_group_plugin/comments_report.rb b/plugins/comment_group/lib/comment_group_plugin/comments_report.rb index d41881a..6472f71 100644 --- a/plugins/comment_group/lib/comment_group_plugin/comments_report.rb +++ b/plugins/comment_group/lib/comment_group_plugin/comments_report.rb @@ -1,3 +1,5 @@ +require 'csv' + module CommentGroupPlugin::CommentsReport #FIXME make this test @@ -27,7 +29,7 @@ module CommentGroupPlugin::CommentsReport return _("No comments for article[%{id}]: %{path}\n\n") % {:id => article.id, :path => article.path} if @export.empty? column_names = @export.first.keys - CSV.generate do |csv| + CSV.generate(force_quotes: true) do |csv| csv << column_names @export.each { |x| csv << x.values } end -- libgit2 0.21.2