From 579ac835471d9982363133f71162061cb7b581ea Mon Sep 17 00:00:00 2001
From: Michael Vogel
Date: Sun, 1 Mar 2015 21:22:06 +0100
Subject: [PATCH] Fixing problems with single linefeeds in the Markdown
conversion.
---
include/bb2diaspora.php | 2 ++
1 file changed, 2 insertions(+)
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);