From 5892af346bee3e3e0855ec3e36b05936b0badd8c Mon Sep 17 00:00:00 2001 From: Pascal Quach Date: Fri, 25 Oct 2024 16:11:08 +0200 Subject: [PATCH] Fix default to short --- themes/default.typ | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/themes/default.typ b/themes/default.typ index d70b4cf..cc7c95f 100644 --- a/themes/default.typ +++ b/themes/default.typ @@ -249,13 +249,13 @@ link-text += [#ent-long] } article = ent-artlong - } else if has-long { - link-text += [#ent-long#suffix] - article = ent-artlong - } else { + } else if has-short { // Default to short link-text = [#ent-short#suffix] article = ent-artshort + } else { + link-text += [#ent-long#suffix] + article = ent-artlong } // Return @@ -315,11 +315,11 @@ } else { [#longplural] } - } else if has-long { - [#longplural] - } else { + } else if has-short { // Default to short [#shortplural] + } else { + [#longplural] } return __link_and_label(entry.key, link-text)