From 216e32c03de0a3fdda9a797f70bed5b64359623c Mon Sep 17 00:00:00 2001 From: Kevin Beckers Date: Thu, 20 Oct 2022 22:22:30 +0200 Subject: [PATCH 1/2] Update table.js Changed `innerHTML` to `innerText` to keep new lines. --- src/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/table.js b/src/table.js index 70bc49f..bad90c5 100644 --- a/src/table.js +++ b/src/table.js @@ -935,7 +935,7 @@ export default class Table { continue; } - data.push(cells.map(cell => cell.innerHTML)); + data.push(cells.map(cell => cell.innerText)); } return data; From 22fab6c7a7435ff3089067a630bb56b398bd4202 Mon Sep 17 00:00:00 2001 From: Kevin Beckers Date: Thu, 20 Oct 2022 22:29:01 +0200 Subject: [PATCH 2/2] Update table.pcss Show new lines --- src/styles/table.pcss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/styles/table.pcss b/src/styles/table.pcss index 2bdf249..62173b6 100644 --- a/src/styles/table.pcss +++ b/src/styles/table.pcss @@ -10,6 +10,7 @@ var(--toolbox-icon-size) + 2 * var(--toolbox-padding) ); + white-space: pre-wrap; border-left: 0px; position: relative; height: 100%;