mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
put the equals bar outside the loop
This commit is contained in:
parent
3b07d01937
commit
f161122412
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue