Skip to content
Browse files

Fixed over-zealous removal of returns from text ...

  • Loading branch information...
1 parent cffbaff commit 0eae8049a0ce88fed56f7b47ce29d90e84e1c7cd martin committed Sep 2, 2002
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/weblib.php
View
4 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:]#?/&=])",

0 comments on commit 0eae804

Please sign in to comment.
Something went wrong with that request. Please try again.