Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't force space after sort separator #195

Merged
merged 1 commit into from
Aug 6, 2024

Conversation

PgBiel
Copy link
Contributor

@PgBiel PgBiel commented Aug 4, 2024

When rendering inverted names in names elements, we were forcing a space after the sort-separator; this PR removes that behavior. For instance, in Doe, Jones the sort separator - separating the family name from the given name in the inverted name - is , , but it could also be , (without a space after the comma), in which case Doe,Jones would be the correct output per citeproc tests, which seems to match the CSL spec in my interpretation, as it enforces that spaces at the end of sort-separator shouldn't be stripped (which I assume to be for this very reason).

This makes citeproc tests nameattr_SortSeparatorOnBibliographyInCitation and sortseparator_SortSeparatorEmpty pass. No currently passing citeproc tests seem to fail with this change.

@PgBiel PgBiel force-pushed the fix-space-after-sort-separator branch from 39c8022 to 0675bb9 Compare August 6, 2024 01:43
@PgBiel PgBiel merged commit af287f8 into main Aug 6, 2024
2 checks passed
@PgBiel PgBiel deleted the fix-space-after-sort-separator branch August 6, 2024 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant