From ac287cfe3195595945fb3265f93a7db420142b35 Mon Sep 17 00:00:00 2001 From: "Mr Beedell, Roke Julian Lockhart" <5wkuhn4z@rokejulianlockhart.addy.io> Date: Mon, 14 Sep 2026 13:02:30 +0100 Subject: [PATCH 1/2] 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. --- chrome/content/zotero/xpcom/cite.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/chrome/content/zotero/xpcom/cite.js b/chrome/content/zotero/xpcom/cite.js index ef68dd30ee..53c592bec1 100644 --- a/chrome/content/zotero/xpcom/cite.js +++ b/chrome/content/zotero/xpcom/cite.js @@ -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 From a30e64c2f55dab400319bc612c54e521f827c6ce Mon Sep 17 00:00:00 2001 From: "Mr Beedell, Roke Julian Lockhart" <5wkuhn4z@rokejulianlockhart.addy.io> Date: Mon, 14 Sep 2026 13:22:22 +0100 Subject: [PATCH 2/2] Remove the `style` parameter from the `journalArticle` test. This adds to ac287cfe3195595945fb3265f93a7db420142b35. --- test/tests/data/metadata/journalArticle-single.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests/data/metadata/journalArticle-single.html b/test/tests/data/metadata/journalArticle-single.html index 682ae5a0b6..b2d770f0c9 100644 --- a/test/tests/data/metadata/journalArticle-single.html +++ b/test/tests/data/metadata/journalArticle-single.html @@ -5,7 +5,7 @@ Bibliography -
+
Rosenzweig, Roy. 2003. “Scarcity or Abundance? Preserving the Past in a Digital Era.” The American Historical Review 108 (3): 735–62. doi:10.2307/3523084.