From 186bedcf6233f9c82b3f45f498f1ba81717a0bbf Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 25 Apr 2020 15:22:25 +0200 Subject: [PATCH] sheet.xsl: smarter html reparser --- www/sheet.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/sheet.xsl b/www/sheet.xsl index 1bc8787..e3fd412 100644 --- a/www/sheet.xsl +++ b/www/sheet.xsl @@ -184,7 +184,7 @@ if (!/:html/.test(window.location.href)) for (var content of document.querySelectorAll(".desc,.content")) - content.innerHTML = content.children.children ? content.innerHTML : content.innerText + content.innerHTML = (content.innerText.match(/>/g) || []).length > 10 ? content.innerText : content.innerHTML function copy_content(input) { input.focus()