diff --git a/etemplate/inc/class.bo_merge.inc.php b/etemplate/inc/class.bo_merge.inc.php index fd49858ab2..5c104eea83 100644 --- a/etemplate/inc/class.bo_merge.inc.php +++ b/etemplate/inc/class.bo_merge.inc.php @@ -408,7 +408,9 @@ abstract class bo_merge '/<(td)( [^>]*)?>((?!))(.*?)<\/td>[\s]*?/' => '<$1$2>$4', '/<(li)(.*?)>(.*?)<\/\1>/' => '<$1 $2>$3', // Remove extra whitespace - '/[\s]+(.*?)<\/w:t>/' => '$1' + '/[\s]+(.*?)<\/w:t>/' => '$1', + // Remove spans with no attributes, linebreaks inside them cause problems + '/(.*?)<\/span>/' => '$1' ); $content = preg_replace(array_keys($replace_tags),array_values($replace_tags),$content); //echo $content;die();