Juris-M / citeproc-js

A JavaScript implementation of the Citation Style Language (CSL) https://citeproc-js.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Numbers are not on the same line as the references

xUser5000 opened this issue · comments

Numeric styles (such as IEEE) have citations numbered in the order of appearance in the document.
Each citation number should be enclosed in square brackets on the same line as the text, before any punctuation, with a space before the bracket [2].

Source

The problem is whenever I supply a numeric style to the processor and call processor.makeBibliography(), numbers get rendered with a new line between them and the references.

Expected

[1] C. Steinbeck, Y. Han, S. Kuhn, O. Horlacher, E. Luttmann, and E. Willighagen, “The Chemistry Development Kit (CDK): an open-source Java library for Chemo- and Bioinformatics.,” Journal of chemical information and computer sciences, vol. 43, no. 2, pp. 493–500, Feb. 2005, doi: 10.1021/ci025584y.

Actual

[1]
C. Steinbeck, Y. Han, S. Kuhn, O. Horlacher, E. Luttmann, and E. Willighagen, “The Chemistry Development Kit (CDK): an open-source Java library for Chemo- and Bioinformatics.,” Journal of chemical information and computer sciences, vol. 43, no. 2, pp. 493–500, Feb. 2005, doi: 10.1021/ci025584y.

Can you give a reproducible example, such as by writing a test like in the test suite? What application are you outputting to?

I'm using Citeproc here to render bibliography in HTML.