mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 04:34:06 +08:00
Merge pull request #7667 from rekonder/aj_SCI_10504
Revert export delimiter for checklists [SCI-10504]
This commit is contained in:
commit
85079a2f2b
2 changed files with 2 additions and 5 deletions
|
@ -22,7 +22,7 @@ class RepositoryChecklistValue < ApplicationRecord
|
|||
EXTRA_PRELOAD_INCLUDE = :repository_checklist_items
|
||||
|
||||
def formatted(separator: ' | ')
|
||||
repository_checklist_items.pluck(:data).join(separator).gsub("\n", "\\n")
|
||||
repository_checklist_items.pluck(:data).join(separator)
|
||||
end
|
||||
|
||||
def export_formatted
|
||||
|
|
|
@ -44,10 +44,7 @@ class SpreadsheetParser
|
|||
if row && i.zero?
|
||||
header = row
|
||||
else
|
||||
escaped_row = row.map do |cell|
|
||||
cell.to_s.gsub("\\n", "\n")
|
||||
end
|
||||
columns = escaped_row
|
||||
columns = row
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue