fix(style): remove whitespace before comma (#2378)

This PR fixes a very niche bug.

If there is a co-author that is not *me* (=`<em>` tagged) and does not
have a `coauthor_url` (=`<a>` tagged), there will be a leading
whitespace before the separating comma. If the author list is split into
multiple lines (due to long author lists or a small view), the
whitespace can lead to a line beginning with a comma.

As I said, very niche, but interestingly, the other cases already did
the same whitespace handling. Just the case not-me/no-url was mising.

Currently, we do not have this case on vanilla al-folio, but you can see
it for example on [my website](https://christianmainka.de/publications/)
if the view is small (e.g., 430px).

Related to #1502.
This commit is contained in:
CheariX 2024-04-29 21:09:50 +00:00 committed by GitHub
parent 37d75d039e
commit 04bf52e105
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -92,8 +92,8 @@
{{ author.last -}} {{ author.last -}}
</a> </a>
{%- else -%} {%- else -%}
{{ author.first }} {{- author.first }}
{{ author.last }} {{ author.last -}}
{% endif %} {% endif %}
{%- endif -%} {%- endif -%}
{% endfor %} {% endfor %}