From 0036e0a1e1040b35ce32fa3cf9c1010fa4d958aa Mon Sep 17 00:00:00 2001 From: Frank Bennett Date: Thu, 21 Mar 2019 21:27:28 +0900 Subject: [PATCH] Assume citeproc-js returns hangingindent as a boolean --- chrome/content/zotero/xpcom/cite.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index d6ca449a59..68db2afede 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -206,7 +206,7 @@ Zotero.Cite = { } // If only one field, apply hanging indent on root else if (!multiField) { - style += "margin-left: " + hangingIndent + "em; text-indent:-" + hangingIndent + "em;"; + style += "margin-left: 2em; text-indent:-2em;"; } } @@ -259,7 +259,7 @@ Zotero.Cite = { divStyle = "margin: 0 .4em 0 " + (secondFieldAlign ? maxOffset + rightPadding : "0") + "em;"; if (hangingIndent) { - divStyle += "padding-left: " + hangingIndent + "em; text-indent:-" + hangingIndent + "em;"; + divStyle += "padding-left: 2em; text-indent:-2em;"; } div.setAttribute("style", divStyle);