Assume citeproc-js returns hangingindent as a boolean

This commit is contained in:
Frank Bennett 2019-03-21 21:27:28 +09:00
parent f596a203f7
commit 0036e0a1e1

View file

@ -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);