]> git.mxchange.org Git - friendica.git/blobdiff - include/bb2diaspora.php
Fixing problems with single linefeeds in the Markdown conversion.
[friendica.git] / 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);