From f35a226447e578b9859e1f933f7c09c5d20a3ca9 Mon Sep 17 00:00:00 2001 From: alecpl Date: Mon, 3 Nov 2008 08:01:04 +0000 Subject: #1485534: fix (multiple) PRE conversion --- program/lib/html2text.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/lib/html2text.php b/program/lib/html2text.php index efc38a630..4180cac28 100644 --- a/program/lib/html2text.php +++ b/program/lib/html2text.php @@ -543,7 +543,7 @@ class html2text while(preg_match('/]*>(.*)<\/pre>/ismU', $text, $matches)) { $result = preg_replace($this->pre_search, $this->pre_replace, $matches[1]); - $text = preg_replace('/]*>.*<\/pre>/ismU', '

' . $result . '
', $text); + $text = preg_replace('/]*>.*<\/pre>/ismU', '

' . $result . '
', $text, 1); } } } -- cgit v1.2.3