From 8b25191aededd91dd4ab942fd0c776f073433db2 Mon Sep 17 00:00:00 2001
From: Derek Jones
Date: Thu, 17 Jan 2008 00:34:37 +0000
Subject: Fixed bug #2810 with nested tags improperly having paragraph tags
placed around them.
---
system/helpers/typography_helper.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'system/helpers')
diff --git a/system/helpers/typography_helper.php b/system/helpers/typography_helper.php
index 355f02cf9..aa751db8b 100644
--- a/system/helpers/typography_helper.php
+++ b/system/helpers/typography_helper.php
@@ -152,8 +152,8 @@ class Auto_typography {
* ends. Later on we'll do some further clean up.
*
*/
- $str = preg_replace("#(<.*?)(".$this->block_elements.")(.*?>)#", "
\\1\\2\\3", $str);
- $str = preg_replace("#(block_elements.")(.*?>)#", "\\1\\2\\3", $str);
+ $str = preg_replace("#(<)(".$this->block_elements.")(.*?>)#", "
\\1\\2\\3", $str);
+ $str = preg_replace("#()(".$this->block_elements.")(.*?>)#", "\\1\\2\\3", $str);
/*
* Convert "ignore" tags to temporary marker
--
cgit v1.2.3-24-g4f1b