From e74631616a89134f4d9fa67febaa0fb2a63dc3dc Mon Sep 17 00:00:00 2001 From: Sampath Balivada Date: Thu, 28 Apr 2022 09:26:48 +0530 Subject: [PATCH] fix multiline cell issue #67 Fixes an issue where cells with multiple lines of data only return the first line. The fix joins all the lines in the cell with spaces and returns the string. --- python/quip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/quip.py b/python/quip.py index b39eafe..32242b8 100644 --- a/python/quip.py +++ b/python/quip.py @@ -709,7 +709,7 @@ def parse_spreadsheet_contents(self, spreadsheet_tree): if images: data["content"] = images[0].attrib.get("src") else: - data["content"] = list(cell.itertext())[0].replace( + data["content"] = " ".join(list(cell.itertext())[:-1]).replace( u"\u200b", "") style = cell.attrib.get("style") if style and "background-color:#" in style: