aboutsummaryrefslogtreecommitdiffstats
path: root/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2016-01-21 15:14:37 +0100
committerplegall <plg@piwigo.org>2016-01-21 15:14:37 +0100
commitf3cb99ea09d5a490758febba6b22d28bbab3b356 (patch)
tree5924fe16c3410d67946a33c86cfc1a748c1b69bc /include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php
parent968e9ff06d32b19cdd4b3d97cf20caec9e8b1260 (diff)
bug #405 fixed, embed CSS style inline
emogrifier could not work, unless we reapply changes introduced by @mistic100 in earlier commits 9cc816d364057828cecc26dc1432448a57f261e9 and efbc08e537e26dde5f1bd98de4f8608ad6e81501
Diffstat (limited to 'include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php')
-rw-r--r--include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php b/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php
index 6c3ea5f5d..2c9c4ecc3 100644
--- a/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php
+++ b/include/smarty/libs/sysplugins/smarty_internal_templatecompilerbase.php
@@ -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);