From 60b9203dd54cdc4c323acce224a4ef93b4884398 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 5 Dec 2016 22:46:51 -0500 Subject: [PATCH] Add
for each carriage return Fixes #2993 --- include/bb2diaspora.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index cd54242164..d6bff9ab5b 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -17,8 +17,8 @@ function diaspora2bb($s) { $s = html_entity_decode($s, ENT_COMPAT, 'UTF-8'); - // Remove CR to avoid problems with following code - $s = str_replace("\r", '', $s); + // Handles single newlines + $s = str_replace("\r", '
', $s); $s = str_replace("\n", " \n", $s);