Skip to content

Commit 04bf52e

Browse files
authored
fix(style): remove whitespace before comma (cotes2020#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 cotes2020#1502.
1 parent 37d75d0 commit 04bf52e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_layouts/bib.liquid

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@
9292
{{ author.last -}}
9393
</a>
9494
{%- else -%}
95-
{{ author.first }}
96-
{{ author.last }}
95+
{{- author.first }}
96+
{{ author.last -}}
9797
{% endif %}
9898
{%- endif -%}
9999
{% endfor %}

0 commit comments

Comments
 (0)