aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2016-02-01 14:43:02 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-02-04 20:31:26 +0100
commitf161122412ea73f8939d581bfbd383b3655cd4c1 (patch)
treeaf0ae79177f93e20c54b3d49db1699362d45175f
parent3b07d019379106d6786121b3208d0e396e1ae40a (diff)
downloadwallabag-f161122412ea73f8939d581bfbd383b3655cd4c1.tar.gz
wallabag-f161122412ea73f8939d581bfbd383b3655cd4c1.tar.zst
wallabag-f161122412ea73f8939d581bfbd383b3655cd4c1.zip
put the equals bar outside the loop
-rw-r--r--src/Wallabag/CoreBundle/Helper/EntriesExport.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
index d3b7ee3e..3f1fc43c 100644
--- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php
+++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
@@ -364,8 +364,9 @@ class EntriesExport
364 private function produceTXT() 364 private function produceTXT()
365 { 365 {
366 $content = ''; 366 $content = '';
367 $bar = str_repeat("=",100);
367 foreach ($this->entries as $entry) { 368 foreach ($this->entries as $entry) {
368 $content .= "\n\n" . str_repeat("=",100) . "\n\n" . $entry->getTitle() . "\n\n" . str_repeat("=",100) . "\n\n"; 369 $content .= "\n\n" . $bar . "\n\n" . $entry->getTitle() . "\n\n" . $bar . "\n\n";
369 $content .= trim(preg_replace('/\s+/S', ' ', strip_tags($entry->getContent()))) . "\n\n"; 370 $content .= trim(preg_replace('/\s+/S', ' ', strip_tags($entry->getContent()))) . "\n\n";
370 } 371 }
371 return Response::create( 372 return Response::create(