Juris-M / citeproc-js

A JavaScript implementation of the Citation Style Language (CSL) https://citeproc-js.readthedocs.io
Other
307 stars 85 forks source link

Numbers are not on the same line as the references #186

Open xUser5000 opened 3 years ago

xUser5000 commented 3 years ago

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.
bwiernik commented 3 years ago

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

xUser5000 commented 3 years ago

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