From 6828e24481db197db67331bb70f1c7fa6b01cd0d Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 23 May 2022 22:40:19 -0400 Subject: [PATCH] citeproc-js: Add space after left margin in plain-text mode This adds a space after the the number in some numeric styles ("[1]" in IEEE style, "1." in Nature) when pasting bibliography entries into a plain-text editor. Some styles (ACS, AMA, Vancouver) will need to be updated to remove their hard-coded spaces to avoid double spaces after this change. Patch from @zepinglee Fixes #2633 --- chrome/content/zotero/xpcom/citeproc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/citeproc.js b/chrome/content/zotero/xpcom/citeproc.js index 0ee6afae01..878bf0a390 100644 --- a/chrome/content/zotero/xpcom/citeproc.js +++ b/chrome/content/zotero/xpcom/citeproc.js @@ -22261,7 +22261,7 @@ CSL.Output.Formats.prototype.text = { return "\n"+str; }, "@display/left-margin": function (state, str) { - return str; + return str + " "; }, "@display/right-inline": function (state, str) { return str;