Make export to csv button on challenges export all tasks (issue #2947)

This time without the line end problems.