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

No space between formatted initials and surname when complete name is missing #442

Open
1 task done
microamp opened this issue Jul 17, 2024 · 0 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@microamp
Copy link
Contributor

Describe the issue

As previously discussed in the thread, #439 (comment), revisit how the author's fullname is generated when completename is not provided.

author_el.set('fullname', ('%s%s%s%s%s' % (
    f"{name.prefix.content} " if name.prefix else '',
    f"{forenames} " if forenames else '',
    ' '.join(initials) if len(initials) > 0 else '',
    f"{name.surname.content} " if name.surname else '',
    f"{name.addition.content} " if name.addition else '',
)).strip())

https://github.com/ietf-tools/bibxml-service/blob/main/xml2rfc_compat/serializers/authors.py#L159-L165

Note there is no space between initials and surname. It will only happen when initials exists.

Determine if this behaviour is a bug.

Code of Conduct

@microamp microamp added the bug Something isn't working label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant