Remove lh and text-indent logic in cite.js.

Removed the minimum line height enforcement and hanging indentation logic.

This is because these styles should not be enforced upon clipboard duplication, as the user may not want this, and is unable to disable it.
This commit is contained in:
Mr Beedell, Roke Julian Lockhart 2026-09-14 13:02:30 +01:00 • committed by GitHub
parent 3c959e1012
commit ac287cfe31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -310,23 +310,6 @@ Zotero.Cite = {
// One of the characters is usually a period, so we can adjust this down a bit
maxOffset = Math.max(1, maxOffset - 2);
// Force a minimum line height
if(lineSpacing <= 1.35) lineSpacing = 1.35;
var style = div.getAttribute("style");
if(!style) style = "";
style += "line-height: " + lineSpacing + "; ";
if(hangingIndent) {
if (multiField && !secondFieldAlign) {
throw ("second-field-align=false and hangingindent=true combination is not currently supported");
}
// If only one field, apply hanging indent on root
else if (!multiField) {
style += "margin-left: 2em; text-indent:-2em;";
}
}
if(style) div.setAttribute("style", style);
// csl-entry