style fix

This commit is contained in:
k.ukolov 2023-02-10 15:18:33 +07:00
parent 56a6ba3466
commit c50dcc5e2a
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,8 @@ func LessonsMessage(schedule []parser.Lesson, prefix, emptyText string) string {
l.Name = strings.ReplaceAll(l.Name, "()", "") l.Name = strings.ReplaceAll(l.Name, "()", "")
l.Name = strings.ReplaceAll(l.Name, l.TimeStart.Format("15:04"), "") l.Name = strings.ReplaceAll(l.Name, l.TimeStart.Format("15:04"), "")
l.Name = strings.TrimSpace(l.Name) l.Name = strings.TrimSpace(l.Name)
s += fmt.Sprintf("%s %s (%s)\n", l.TimeMsg, l.Name, l.Place) s += fmt.Sprintf("%s %s (%s)\n"+
"%s \n", l.TimeMsg, l.Name, l.Place, l.User)
} }
if prefix != "" { if prefix != "" {
s += "\n" + s += "\n" +