Hello, "Bruce D'Arcus" <bdar...@gmail.com> writes:
> On Mon, Oct 11, 2021 at 10:28 AM John Kitchin <jkitc...@andrew.cmu.edu> wrote: >> >> you should probably trim each key, and re-add spaces where you want them in >> the function that does these kinds of things. > > I realize that's an option, but something about that feels wrong to me. > > We're adding a single space as prefix, not because it's meaningful for > citation purposes (there actually is no prefix, though org-cite > interprets it as " "), but only so buffer formatting works correctly. I don't think that's totally true. The additional space makes sense typographically, in particular when some suffix is associated to the key. > And then presumably code needs to be added to the export machinery to > strip those empty affixes? I think they are ignored already. I didn't check though. > Am not saying the latter goal isn't important; just seems like the > side effect isn't ideal. > >> Maybe that should even be controlled by a defcustom that allows 0-1 spaces. > > You mean in org-cite? I think that'd be my preference, unless there's > a better solution to this issue. Org Cite is unrelated to this. One could as well have inserted spaces manually, i.e., without calling `org-cite-insert' at all. The functions responsible for swapping citations ought to cope with this situation too. Regards, -- Nicolas Goaziou