]> git.mxchange.org Git - friendica.git/commitdiff
markdown export for libertree now handles horizontal tulers correct.
authorMichael Vogel <icarus@dabo.de>
Sun, 22 Jun 2014 23:25:58 +0000 (01:25 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 22 Jun 2014 23:25:58 +0000 (01:25 +0200)
include/bb2diaspora.php

index eeed19d81686a150b9be58609243f2d5a684f74a..b70a056619f9b8f927fc53032982e11dd859bf7f 100644 (file)
@@ -78,7 +78,7 @@ 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 />", "\n<hr />", $Text);
+               $Text = str_replace("<hr />", "<br /><hr />", $Text);
        }
 
        // Now convert HTML to Markdown