sync: include headline in exercice overview, as it is difficult to retrieve otherwise

This commit is contained in:
nemunaire 2018-12-04 04:11:09 +01:00
parent 99024ee5ce
commit deb12052b5
2 changed files with 5 additions and 7 deletions

View file

@ -61,9 +61,6 @@ func SyncExercices(i Importer, theme fic.Theme) []string {
}
ovrvw := strings.Split(overview, "\n")
headline := ovrvw[0]
if len(ovrvw) > 1 {
overview = strings.Join(ovrvw[1:], "\n")
}
statement, err := getFileContent(i, path.Join(theme.Path, edir, "statement.txt"))
if err != nil {