summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-20 23:35:06 +0100
committermsquare <msquare@notrademark.de>2017-12-20 23:35:06 +0100
commit9969208be2b5c38789a8a38e84e84e893b6c0e7f (patch)
tree423e4e939d873619aaf064fe5e564c70a1c983f9 /includes
parenta0f70d9819532bca9def088e1089940b2696abf3 (diff)
solve problem with autobreaks in news text when building html tables
Diffstat (limited to 'includes')
-rw-r--r--includes/pages/user_news.php2
1 files changed, 1 insertions, 1 deletions
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", '<br><br>', $text);
+ $text = preg_replace("@\n[\w]*\n@m", '<br><br>', $text);
return $text;
}