sync: Use hint title if provided
This commit is contained in:
parent
c1eeb382f8
commit
07ec6cb613
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Reference in a new issue