]> git.mxchange.org Git - friendica.git/commitdiff
Fixing problems with single linefeeds in the Markdown conversion.
authorMichael Vogel <icarus@dabo.de>
Sun, 1 Mar 2015 20:22:06 +0000 (21:22 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 1 Mar 2015 20:22:06 +0000 (21:22 +0100)
include/bb2diaspora.php

index 5a38852936dd40453fab0947ceb33d0e8e5b06e1..866ac26be4a43bdc7912d7b0bd07ebc66d9f9d13 100644 (file)
@@ -20,6 +20,8 @@ function diaspora2bb($s) {
        // Remove CR to avoid problems with following code
        //$s = str_replace("\r","",$s);
 
+       $s = str_replace("\n"," \n",$s);
+
        // The parser cannot handle paragraphs correctly
        $s = str_replace(array("</p>", "<p>", '<p dir="ltr">'),array("<br>", "<br>", "<br>"),$s);