Merge pull request #7667 from rekonder/aj_SCI_10504

Revert export delimiter for checklists [SCI-10504]
This commit is contained in:
Martin Artnik 2024-07-09 14:35:36 +02:00 committed by GitHub
commit 85079a2f2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 5 deletions

View file

@ -22,7 +22,7 @@ class RepositoryChecklistValue < ApplicationRecord
EXTRA_PRELOAD_INCLUDE = :repository_checklist_items EXTRA_PRELOAD_INCLUDE = :repository_checklist_items
def formatted(separator: ' | ') def formatted(separator: ' | ')
repository_checklist_items.pluck(:data).join(separator).gsub("\n", "\\n") repository_checklist_items.pluck(:data).join(separator)
end end
def export_formatted def export_formatted

View file

@ -44,10 +44,7 @@ class SpreadsheetParser
if row && i.zero? if row && i.zero?
header = row header = row
else else
escaped_row = row.map do |cell| columns = row
cell.to_s.gsub("\\n", "\n")
end
columns = escaped_row
end end
end end