put the equals bar outside the loop
This commit is contained in:
parent
3b07d01937
commit
f161122412
@ -364,8 +364,9 @@ class EntriesExport
|
|||||||
private function produceTXT()
|
private function produceTXT()
|
||||||
{
|
{
|
||||||
$content = '';
|
$content = '';
|
||||||
|
$bar = str_repeat("=",100);
|
||||||
foreach ($this->entries as $entry) {
|
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";
|
$content .= trim(preg_replace('/\s+/S', ' ', strip_tags($entry->getContent()))) . "\n\n";
|
||||||
}
|
}
|
||||||
return Response::create(
|
return Response::create(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user