From 6aa84889f795513df2f49a772cd0aad377d84449 Mon Sep 17 00:00:00 2001 From: blissful Date: Wed, 1 May 2024 01:43:39 -0400 Subject: [PATCH] et al --- rose/templates.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rose/templates.py b/rose/templates.py index 3e9131d..09e1952 100644 --- a/rose/templates.py +++ b/rose/templates.py @@ -57,7 +57,8 @@ def arrayfmt(xs: Iterable[str]) -> str: def artistsarrayfmt(xs: Iterable[Artist]) -> str: """Format an array of Artists.""" - return arrayfmt([x.name for x in xs if not x.alias]) + strs = [x.name for x in xs if not x.alias] + return arrayfmt(strs) if len(strs) <= 3 else f"{strs[0]} et al." def artistsfmt(a: ArtistMapping, *, omit: list[str] | None = None) -> str: