From 63732c2620da44aebd6c5fbfd58800486af2dce1 Mon Sep 17 00:00:00 2001 From: Wonjae Park Date: Mon, 16 Oct 2023 17:38:04 +0900 Subject: [PATCH] Merge copyrights with new line Signed-off-by: Wonjae Park --- src/fosslight_source/_scan_item.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fosslight_source/_scan_item.py b/src/fosslight_source/_scan_item.py index 17b5ef5..5a42db3 100644 --- a/src/fosslight_source/_scan_item.py +++ b/src/fosslight_source/_scan_item.py @@ -72,12 +72,12 @@ def get_row_to_print(self): print_rows = [] if not self.download_location: print_rows.append([self.file, self.oss_name, self.oss_version, ','.join(self.licenses), "", "", - ','.join(self.copyright), "Exclude" if self.exclude else "", self.comment, + "\n".join(self.copyright), "Exclude" if self.exclude else "", self.comment, self.license_reference]) else: for url in self.download_location: print_rows.append([self.file, self.oss_name, self.oss_version, ','.join(self.licenses), url, "", - ','.join(self.copyright), "Exclude" if self.exclude else "", self.comment, + "\n".join(self.copyright), "Exclude" if self.exclude else "", self.comment, self.license_reference]) return print_rows