Skip to content

Commit

Permalink
fix(style): remove whitespace before comma (alshedivat#2378)
Browse files Browse the repository at this point in the history
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 alshedivat#1502.
  • Loading branch information
CheariX authored Apr 29, 2024
1 parent 37d75d0 commit 04bf52e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/bib.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@
{{ author.last -}}
</a>
{%- else -%}
{{ author.first }}
{{ author.last }}
{{- author.first }}
{{ author.last -}}
{% endif %}
{%- endif -%}
{% endfor %}
Expand Down

0 comments on commit 04bf52e

Please sign in to comment.