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

@ -31,7 +31,7 @@ func treatRename(pathname string, team fic.Team) {
if err := genTeamMyFile(team); err != nil {
log.Println("my-", team.Id, ".json generation error: ", err)
}
if _, err := fic.NewEvent(fmt.Sprintf("Souhaitons bonne chance à l'équipe <strong>%s</strong> qui vient de nous rejoindre !", team.Name), "alert-info"); err != nil {
if _, err := fic.NewEvent(fmt.Sprintf("Souhaitons bonne chance à l'équipe <strong>%s</strong> qui vient de nous rejoindre&nbsp;!", team.Name), "alert-info"); err != nil {
log.Println("[WRN] Unable to create event:", err)
}
if err := genEventsFile(); err != nil {