seboettg / citeproc-php

Full-featured CSL 1.0.1 processor for PHP
MIT License
75 stars 39 forks source link

Closing parentheses on BibTeX records #73

Closed hllizi closed 4 years ago

hllizi commented 4 years ago

OK, here we go

seboettg commented 4 years ago

Hi @hllizi! I guess this issue is not that easy to solve, at least not by changing the code. I think the simplest approach would be to change the BibTeX style with a little hack. Just append a space in the suffix attribute of the group node within in the layout node:

You may change the node <group prefix="{" suffix="}" delimiter=", "> to <group prefix="{" suffix=" }" delimiter=", ">. This hack should solve your problem.

Anyhow, you're not the first whose noticed this problem. Have also a look here: https://github.com/seboettg/citeproc-php/issues/51

If you have an idea how to solve this problem on the code-side (maybe less brachial than you're last approach), let me know.

hllizi commented 4 years ago

OK, thanks a lot. I had also thought of that hack, and it's not my favourite solution I'm going to go with hack for now.