From 7506b59b6df660ffa1a23a487f7d019ac882340f Mon Sep 17 00:00:00 2001 From: windingwind <33902321+windingwind@users.noreply.github.com> Date: Tue, 20 Jun 2023 10:29:34 +0800 Subject: [PATCH] fix: template editor preview entity bug --- src/modules/template/editorWindow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/template/editorWindow.ts b/src/modules/template/editorWindow.ts index 278ddb0..7af4df2 100644 --- a/src/modules/template/editorWindow.ts +++ b/src/modules/template/editorWindow.ts @@ -185,7 +185,7 @@ async function updatePreview() { const container = win?.document.getElementById("preview-container"); if (container) { if (ztoolkit.isZotero7()) { - container.innerHTML = html; + container.innerHTML = html.replace(/ /g, "#160;"); } else { container.innerHTML = ""; container.appendChild(