diff --git a/app/Http/Controllers/ExportController.php b/app/Http/Controllers/ExportController.php index fa57006..fcf17a6 100644 --- a/app/Http/Controllers/ExportController.php +++ b/app/Http/Controllers/ExportController.php @@ -39,7 +39,11 @@ class ExportController extends Controller $rate = $total / count($sources); if ($rate * 100 >= $percent) { if ($type == 'mastodon') { + //comman break teh CSV so just take them out $comments = str_replace(",", ";", $location->description); + //remove extra white space + $comments = str_replace(["\n\r", "\n", "\r"], " ", $comments); + //add to the export list array_push($list, [$location->url, $location->rating, $comments, "FALSE", "FALSE", "FALSE"]); } }