backend: format events with non-breakable spaces

This commit is contained in:
nemunaire 2018-12-08 20:00:06 +01:00
commit 2b0d16aa0d
4 changed files with 5 additions and 5 deletions

View file

@ -36,7 +36,7 @@ func treatOpeningHint(pathname string, team fic.Team) {
log.Println("[WRN]", err)
} else if theme, err := exercice.GetTheme(); err != nil {
log.Println("[WRN]", err)
} else if _, err := fic.NewEvent(fmt.Sprintf("L'équipe %s a dévoilé un indice pour le <strong>%d<sup>e</sup></strong> défi %s !", team.Name, lvl, theme.Name), "alert-info"); err != nil {
} else if _, err := fic.NewEvent(fmt.Sprintf("L'équipe %s a dévoilé un indice pour le <strong>%d<sup>e</sup></strong> défi %s&nbsp;!", team.Name, lvl, theme.Name), "alert-info"); err != nil {
log.Println("[WRN] Unable to create event:", err)
}