From 68b06e380381fcd98f43258e286ef195fc95b49b Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Sat, 16 Mar 2024 21:47:06 -0700 Subject: [PATCH] Prevent text wrapping on copied HTML Better presentation when copied into spreadsheets --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index d02febc..8f6cc80 100644 --- a/index.html +++ b/index.html @@ -411,7 +411,7 @@ else { const data = [new ClipboardItem({ 'text/plain': new Blob([table.innerText], { type: 'text/plain' }), - 'text/html': new Blob([table.outerHTML], { type: 'text/html' }) + 'text/html': new Blob([`${table.outerHTML}`], { type: 'text/html' }) })]; navigator.clipboard.write(data); } -- 2.47.3