sync: Use hint title if provided

This commit is contained in:
nemunaire 2019-01-18 04:23:56 +01:00
parent c1eeb382f8
commit 07ec6cb613

View file

@ -26,7 +26,7 @@ func SyncExerciceHints(i Importer, exercice fic.Exercice) (errs []string) {
errs = append(errs, err.Error()) errs = append(errs, err.Error())
} else { } else {
for n, hint := range params.Hints { for n, hint := range params.Hints {
if hint.Title != "" { if hint.Title == "" {
hint.Title = fmt.Sprintf("Astuce #%d", n+1) hint.Title = fmt.Sprintf("Astuce #%d", n+1)
} else { } else {
hint.Title = fixnbsp(hint.Title) hint.Title = fixnbsp(hint.Title)