]> git.mxchange.org Git - friendica.git/commitdiff
Add paragraph to BBCode conversion of [quote]
authorHypolite Petovan <mrpetovan@gmail.com>
Tue, 13 Feb 2018 03:37:30 +0000 (22:37 -0500)
committerHypolite Petovan <mrpetovan@gmail.com>
Tue, 13 Feb 2018 03:37:30 +0000 (22:37 -0500)
src/Content/Text/BBCode.php

index 14f98202e7b27b1c8a9e72c545c5602bb680abba..2ea15b064180c1044accd8dc649f8bff2a17f785 100644 (file)
@@ -1727,7 +1727,7 @@ class BBCode
                $endlessloop = 0;
                while ((strpos($text, "[/quote]")!== false)  && (strpos($text, "[quote=") !== false) && (++$endlessloop < 20)) {
                        $text = preg_replace("/\[quote=[\"\']*(.*?)[\"\']*\](.*?)\[\/quote\]/ism",
-                                                "<br /><strong class=".'"author"'.">" . $t_wrote . "</strong><blockquote>$2</blockquote>",
+                                                "<p><strong class=".'"author"'.">" . $t_wrote . "</strong></p><blockquote>$2</blockquote>",
                                                 $text);
                }