diff options
author | alecpl <alec@alec.pl> | 2008-11-03 08:01:04 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2008-11-03 08:01:04 +0000 |
commit | f35a226447e578b9859e1f933f7c09c5d20a3ca9 (patch) | |
tree | f01d09c72a3ba0f4329648c36b86db72fd0aa3cc /program/lib/html2text.php | |
parent | d7a5bfac6c72ce20d72ac51df7ff734e45a1973e (diff) |
#1485534: fix (multiple) PRE conversion
Diffstat (limited to 'program/lib/html2text.php')
-rw-r--r-- | program/lib/html2text.php | 2 |
1 files changed, 1 insertions, 1 deletions
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[^>]*>(.*)<\/pre>/ismU', $text, $matches)) { $result = preg_replace($this->pre_search, $this->pre_replace, $matches[1]); - $text = preg_replace('/<pre[^>]*>.*<\/pre>/ismU', '<div><br>' . $result . '<br></div>', $text); + $text = preg_replace('/<pre[^>]*>.*<\/pre>/ismU', '<div><br>' . $result . '<br></div>', $text, 1); } } } |