From: Ardis Lu Date: Sun, 17 Mar 2024 04:47:06 +0000 (-0700) Subject: Prevent text wrapping on copied HTML X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=68b06e380381fcd98f43258e286ef195fc95b49b;p=event-hashes Prevent text wrapping on copied HTML Better presentation when copied into spreadsheets --- 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); }