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(