]> git.mxchange.org Git - friendica.git/commitdiff
BBCode: Add a linefeed between a picture and the following text. This is important...
authorMichael Vogel <icarus@dabo.de>
Mon, 25 Aug 2014 21:40:18 +0000 (23:40 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 25 Aug 2014 21:40:18 +0000 (23:40 +0200)
include/bbcode.php

index 0d9d34cd7441ffbfd088fd827dca5e6aa4f9b138..75aa4fd89f08acd13104e5cbb631a6feebf3ddc7 100644 (file)
@@ -77,9 +77,9 @@ function bb_attachment($Text, $plaintext = false, $tryoembed = true) {
                                        $oembed = $bookmark[0];
 
                                if (($image != "") AND !strstr(strtolower($oembed), "<img "))
-                                       $text .= sprintf('<a href="%s" target="_blank"><img src="%s" alt="" title="%s" class="attachment-image" /></a>', $url, $image, $title);
+                                       $text .= sprintf('<a href="%s" target="_blank"><img src="%s" alt="" title="%s" class="attachment-image" /></a><br />', $url, $image, $title);
                                elseif (($preview != "") AND !strstr(strtolower($oembed), "<img "))
-                                       $text .= sprintf('<a href="%s" target="_blank"><img src="%s" alt="" title="%s" class="attachment-preview" /></a>', $url, $preview, $title);
+                                       $text .= sprintf('<a href="%s" target="_blank"><img src="%s" alt="" title="%s" class="attachment-preview" /></a><br />', $url, $preview, $title);
 
                                $text .= $oembed;