bug #405 fixed, embed CSS style inline

emogrifier could not work, unless we reapply changes introduced by @mistic100 in earlier commits 9cc816d364 and efbc08e537
This commit is contained in:
plegall
2016-01-21 15:14:37 +01:00
parent 968e9ff06d
commit f3cb99ea09

View File

@@ -812,7 +812,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
'#(([a-z0-9]\s*=\s*("[^"]*?")|(\'[^\']*?\'))|<[a-z0-9_]+)\s+([a-z/>])#is' => '\1 \5',
'#^\s+<#Ss' => '<',
'#>\s+$#Ss' => '>',
$this->stripRegEx => '');
$this->stripRegEx => ' ');
$text = preg_replace(array_keys($expressions), array_values($expressions), $text);
$_offset = 0;
@@ -828,7 +828,7 @@ abstract class Smarty_Internal_TemplateCompilerBase
}
}
} else {
$text = preg_replace($this->stripRegEx, '', $text);
$text = preg_replace($this->stripRegEx, ' ', $text);
}
}
return new Smarty_Internal_ParseTree_Text($text);