A Zotero user reported that, when pasting an IEEE reference into a plain-text editor, there’s no space after the citation number, resulting in "[1]Author"
instead of "[1] Author"
.
I initially suggested we’d just need to add a space to the suffix="]"
in the IEEE style, which would be ignored in HTML output due to whitespace collapsing. It then occurred to me that a more general fix would be to have the citation processor automatically add a space after the first field in plain-text output when second-field-align
is used, rather than needing to hard-code a space in all similar styles. @Sebastian_Karcher agreed with the latter approach and suggested that a hard-coded space could cause problems with RTF/etc.
Somebody quickly submitted a patch that adopted the second approach. Unfortunately, in testing it, I found that, while it fixes the problem in IEEE and Nature, three other bundled Zotero styles — American Chemical Society, American Medical Association, and Vancouver — already hard-code a space after the citation number, so the patch would result in two spaces for those styles.
So we have two options:
-
Hard-code spaces in the
citation-number
suffixes in IEEE, Nature, and any other similar styles to bring them in line with ACS, AMA, and Vancouver. -
Define the expected processor behavior here to be that a space is automatically added after the first field in plain-text mode when
second-field-align
is used, and then remove the space in ACS, AMA, Vancouver, and any other styles that do that.
(2) is arguably the more elegant option, but (1) is far easier, and since some styles already do (1) I’d be inclined to just go with that. But I don’t know what processors other than citeproc-js do here, nor have I tested the RTF output of the styles that hard-code a space to see what the effect is there.