bibxml-service icon indicating copy to clipboard operation
bibxml-service copied to clipboard

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

Open microamp opened this issue 7 months ago • 0 comments

Describe the issue

As previously discussed in the thread, https://github.com/ietf-tools/bibxml-service/pull/439#discussion_r1678678987, 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 avatar Jul 17 '24 03:07 microamp