From 3b3d62fd9bbeddf35e2de255ec9cf207fda32433 Mon Sep 17 00:00:00 2001 From: unexplrd Date: Tue, 20 May 2025 20:38:52 +0300 Subject: [PATCH] lib.typ: too lazy to name it Signed-off-by: unexplrd --- lib.typ | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/lib.typ b/lib.typ index 8a2fa70..96170b5 100644 --- a/lib.typ +++ b/lib.typ @@ -717,25 +717,28 @@ #colbreak() #set align(right) - #if mentors.len() == 1 { - let mentor = mentors.at(0) - if "gender" in mentor.keys() { - if mentor.gender == "m" [Перевірив:\ ] else if ( - mentor.gender == "f" - ) [Перевірила:\ ] - } else [Перевірили:\ ] - [ - #mentor.name\ + #if type(mentors) == array { + if mentors.len() == 1 { + let mentor = mentors.at(0) + if "gender" in mentor.keys() { + if mentor.gender == "m" [Перевірив:\ ] else if ( + mentor.gender == "f" + ) [Перевірила:\ ] + } else [Перевірили:\ ] + if ( + "degree" in mentor.keys() and mentor.degree != none + ) [#mentor.degree\ ] + [#mentor.name\ ] + } else if mentors.len() > 1 [ + Перевірили:\ + #for mentor in mentors { + [ + #mentor.degree\ + #mentor.name\ + ] + } ] - } else if mentors.len() > 1 [ - Перевірили:\ - #for mentor in mentors { - [ - #mentor.degree\ - #mentor.name\ - ] - } - ] + } ] #v(1fr)