]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
put the equals bar outside the loop
authorThomas Citharel <tcit@tcit.fr>
Mon, 1 Feb 2016 13:43:02 +0000 (14:43 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 4 Feb 2016 19:31:26 +0000 (20:31 +0100)
src/Wallabag/CoreBundle/Helper/EntriesExport.php

index d3b7ee3e7265dcf3d2ac59ba6658ffe7b93c72b4..3f1fc43cc22e5b1dc8b4496ac430bdebf8d6a57c 100644 (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(