From: Michael Vogel Date: Sun, 1 Mar 2015 20:22:06 +0000 (+0100) Subject: Fixing problems with single linefeeds in the Markdown conversion. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=579ac835471d9982363133f71162061cb7b581ea;p=friendica.git Fixing problems with single linefeeds in the Markdown conversion. --- diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index 5a38852936..866ac26be4 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -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("

", "

", '

'),array("
", "
", "
"),$s);