summaryrefslogtreecommitdiff
path: root/conf.typ
diff options
context:
space:
mode:
Diffstat (limited to 'conf.typ')
-rw-r--r--conf.typ14
1 files 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) => {