Merge pull request #1668 from Juris-M/zmaster

Handle handingindent return from citeproc-js as boolean
This commit is contained in:
Dan Stillman 2019-03-29 02:53:06 -04:00 committed by GitHub
commit 038119c481
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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