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

Bug report: delimiter-precedes-last="always" not working #248

Open
zepinglee opened this issue Jan 10, 2025 · 0 comments
Open

Bug report: delimiter-precedes-last="always" not working #248

zepinglee opened this issue Jan 10, 2025 · 0 comments

Comments

@zepinglee
Copy link
Contributor

The last delimiter with delimiter-precedes-last="always" attribute is missing when the last name is in the literal form.

Expected:

George Lakoff, and Mark Johnson
George Lakoff, and Mark Johnson

Actual result:

George Lakoff and Mark Johnson
George Lakoff, and Mark Johnson

Full fixture:

>>===== MODE =====>>
citation
<<===== MODE =====<<


>>===== RESULT =====>>
George Lakoff, and Mark Johnson
George Lakoff, and Mark Johnson
<<===== RESULT =====<<


>>===== CSL =====>>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0">
  <info>
    <id />
    <title />
    <updated>2025-01-10T19:12:06+08:00</updated>
  </info>
  <macro name="author">
    <names variable="author">
      <name and="text" delimiter-precedes-last="always"/>
    </names>
  </macro>
  <citation>
    <layout>
      <text macro="author"/>
    </layout>
  </citation>
</style>
<<===== CSL =====<<


>>===== CITATION-ITEMS =====>>
[
    [
        {
            "id": "ITEM-1"
        }
    ],
    [
        {
            "id": "ITEM-2"
        }
    ]
]
<<===== CITATION-ITEMS =====<<


>>===== INPUT =====>>
[
    {
        "id": "ITEM-1",
        "type": "book",
        "author": [
            {
                "family": "Lakoff",
                "given": "George"
            },
            {
                "literal": "Mark Johnson"
            }
        ]
    },
    {
        "id": "ITEM-2",
        "type": "book",
        "author": [
            {
                "family": "Lakoff",
                "given": "George"
            },
            {
                "family": "Johnson",
                "given": "Mark"
            }
        ]
    }
]
<<===== INPUT =====<<


>>===== VERSION =====>>
1.0
<<===== VERSION =====<<
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

No branches or pull requests

1 participant