mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
removed tabs. fixed indentiation.
This commit is contained in:
@@ -25,8 +25,8 @@
|
|||||||
* @param string
|
* @param string
|
||||||
* @param Smarty
|
* @param Smarty
|
||||||
*/
|
*/
|
||||||
function smarty_outputfilter_trimwhitespace($source, &$smarty)
|
function smarty_outputfilter_trimwhitespace($source, &$smarty)
|
||||||
{
|
{
|
||||||
// Pull out the script blocks
|
// Pull out the script blocks
|
||||||
preg_match_all("!<script[^>]+>.*?</script>!is", $source, $match);
|
preg_match_all("!<script[^>]+>.*?</script>!is", $source, $match);
|
||||||
$_script_blocks = $match[0];
|
$_script_blocks = $match[0];
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
smarty_outputfilter_trimwhitespace_replace("@@@SMARTY:TRIM:TEXTAREA@@@",$_textarea_blocks, $source);
|
smarty_outputfilter_trimwhitespace_replace("@@@SMARTY:TRIM:TEXTAREA@@@",$_textarea_blocks, $source);
|
||||||
|
|
||||||
return $source;
|
return $source;
|
||||||
}
|
}
|
||||||
|
|
||||||
function smarty_outputfilter_trimwhitespace_replace($search_str, $replace, &$subject) {
|
function smarty_outputfilter_trimwhitespace_replace($search_str, $replace, &$subject) {
|
||||||
$_len = strlen($search_str);
|
$_len = strlen($search_str);
|
||||||
|
Reference in New Issue
Block a user