From 0eae8049a0ce88fed56f7b47ce29d90e84e1c7cd Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 2 Sep 2002 07:41:39 +0000 Subject: [PATCH] Fixed over-zealous removal of returns from text ... --- lib/weblib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 4f528c7eb50..1f259db3211 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -269,8 +269,8 @@ function text_to_html($text, $smiley=true, $para=true) { $text = eregi_replace(">([[:space:]]+)<", "><", $text); // Remove any returns that precede or follow HTML tags - $text = eregi_replace("([\n\r])+<", " <", $text); - $text = eregi_replace(">([\n\r])+", "> ", $text); + $text = eregi_replace("([\n\r])<", " <", $text); + $text = eregi_replace(">([\n\r])", "> ", $text); // Make URLs into links. eg http://moodle.com/ $text = eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])",