From 9b7143dae883142f467477f03a9ef419cac69821 Mon Sep 17 00:00:00 2001
From: CheariX <CheariX@users.noreply.github.com>
Date: Mon, 29 Apr 2024 21:09:50 +0000
Subject: [PATCH] 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.
---
 _layouts/bib.liquid | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/_layouts/bib.liquid b/_layouts/bib.liquid
index 82aeb45380e7..076f09b9bf0c 100644
--- a/_layouts/bib.liquid
+++ b/_layouts/bib.liquid
@@ -92,8 +92,8 @@
               {{ author.last -}}
             </a>
           {%- else -%}
-            {{ author.first }}
-            {{ author.last }}
+            {{- author.first }}
+            {{ author.last -}}
           {% endif %}
         {%- endif -%}
       {% endfor %}