From 9969208be2b5c38789a8a38e84e84e893b6c0e7f Mon Sep 17 00:00:00 2001 From: msquare Date: Wed, 20 Dec 2017 23:35:06 +0100 Subject: solve problem with autobreaks in news text when building html tables --- includes/pages/user_news.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'includes/pages/user_news.php') diff --git a/includes/pages/user_news.php b/includes/pages/user_news.php index 0da49c8e..bc07eb6c 100644 --- a/includes/pages/user_news.php +++ b/includes/pages/user_news.php @@ -79,7 +79,7 @@ function user_meetings() */ function news_text($news) { $text = ReplaceSmilies($news['Text']); - $text = str_replace("\n\n", '

', $text); + $text = preg_replace("@\n[\w]*\n@m", '

', $text); return $text; } -- cgit v1.2.3-54-g00ecf