From 2ba62d0d2fd6d1158f003eaf0250dae0a2e6f130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=B4=D0=BB=D0=B0=20=D0=93=D1=80?= =?UTF-8?q?=D0=B8=D0=B3=D0=BE=D1=80=D1=8C=D0=B5=D0=B2?= Date: Wed, 1 Jan 2025 13:19:57 +0000 Subject: =?UTF-8?q?=D1=80=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE=C3=90=D1=80:?= =?UTF-8?q?=20=D1=81=D1=82=D1=80=D0=BE=D0=BA=C3=90=D0=B0=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D1=82=C3=90=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5?= =?UTF-8?q?=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf.typ | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/conf.typ b/conf.typ index bf19069..615aca1 100644 --- a/conf.typ +++ b/conf.typ @@ -126,12 +126,14 @@ let sex = self.author_info.get_author_sex(author) let course = self.author_info.get_author_course(author) let group = self.author_info.get_author_group(author) - let result = "" - if (type(sex) == str) and (sex.len() > 0) { - result = result + sex - } - - author_string = author_string + " " + author.group.at(0) + " курса " + author.group + " группы\n" + if course.len() > 0 { + course = self.uitls.strglue(course, "курса") + } + if group.len() > 0 { + group = self.utils.strglue(group, "группа") + } + let result = self.utils.strglue(sex, course, group) + "\n" + return result }, _default_title: (self, type, info) => { -- cgit v1.2.3