]> git.mxchange.org Git - friendica.git/commitdiff
When converting bbcode for Libertree then an empty line has to be before a honrizonta...
authorMichael Vogel <icarus@dabo.de>
Sat, 13 Dec 2014 22:07:15 +0000 (23:07 +0100)
committerMichael Vogel <icarus@dabo.de>
Sat, 13 Dec 2014 22:07:15 +0000 (23:07 +0100)
include/bb2diaspora.php

index d836f325e85cfa0aa2f634ae468ff39e6803e14d..7107c4913950f130e3638c7cb59a40293b386af3 100644 (file)
@@ -90,8 +90,9 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) {
 
        } else {
                $Text = bbcode($Text, $preserve_nl, false, 4);
+
                // Libertree doesn't convert a harizontal rule if there isn't a linefeed
-               $Text = str_replace("<hr />", "<br /><hr />", $Text);
+               $Text = str_replace(array("<hr />", "<hr>"), array("<br /><hr />", "<br><hr>"), $Text);
        }
 
        // Now convert HTML to Markdown