From e7bedf4433f4ec1eae1eae0c45dda5cd7a59569a Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 10 Nov 2015 19:02:28 -0800 Subject: do a better job of preserving linebreaks in posts for channels that use markdown --- mod/item.php | 1 + 1 file changed, 1 insertion(+) (limited to 'mod') diff --git a/mod/item.php b/mod/item.php index 591dc8407..5f45a248b 100644 --- a/mod/item.php +++ b/mod/item.php @@ -474,6 +474,7 @@ function item_post(&$a) { if($uid && $uid == $profile_uid && feature_enabled($uid,'markdown')) { require_once('include/bb2diaspora.php'); $body = escape_tags($body); + $body = str_replace("\n",'
', $body); $body = preg_replace_callback('/\[share(.*?)\]/ism','share_shield',$body); $body = diaspora2bb($body,true); $body = preg_replace_callback('/\[share(.*?)\]/ism','share_unshield',$body); -- cgit v1.2.3