seboettg / citeproc-php

Full-featured CSL 1.0.1 processor for PHP
MIT License
73 stars 38 forks source link

A slash in the title causes multiple slashes in the reference. #141

Open xopoc14 opened 1 year ago

xopoc14 commented 1 year ago

Bug reports:

When the reference has a slash in the title, the reference rendered with all slashed in the title instead of spaces.

Used CSL stylesheet:

chicago-author-date-16th-edition

Used CSL metadata

Please replace these lines with your used metadata, for instance:

[
    {
        "author": [
            {
                "family": "Anderson", 
                "given": "John"
            }
        ], 
        "id": "ITEM-1", 
        "type": "book",
        "title": "Black/White disparities in low birth weight pregnancy outcomes."
    }
]

Expected:

Anderson, John. 2001. Black/White Disparities in Low Birth Weight Pregnancy Outcomes.

Actual:

Anderson, John. 2001. Black/White/Disparities/in/Low/Birth/Weight/Pregnancy/Outcomes.

hktang commented 2 months ago

Hi there, I am using Chicago, MLA, APA, IEEE, and noticed Chicago and MLA has the same issue, while IEEE renders correctly. APA does not provide any output. In my case, the bug appears in "container-title". I will investigate a bit further.

Style Output
MLA
APA
IEEE 🟢
APA