put the equals bar outside the loop

This commit is contained in:
Thomas Citharel 2016-02-01 14:43:02 +01:00 committed by Jeremy Benoist
parent 3b07d01937
commit f161122412

View File

@ -364,8 +364,9 @@ class EntriesExport
private function produceTXT()
{
$content = '';
$bar = str_repeat("=",100);
foreach ($this->entries as $entry) {
$content .= "\n\n" . str_repeat("=",100) . "\n\n" . $entry->getTitle() . "\n\n" . str_repeat("=",100) . "\n\n";
$content .= "\n\n" . $bar . "\n\n" . $entry->getTitle() . "\n\n" . $bar . "\n\n";
$content .= trim(preg_replace('/\s+/S', ' ', strip_tags($entry->getContent()))) . "\n\n";
}
return Response::create(