Index: branches/RC/core/kernel/processors/tag_processor.php =================================================================== diff -u -N -r9951 -r9969 --- branches/RC/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 9951) +++ branches/RC/core/kernel/processors/tag_processor.php (.../tag_processor.php) (revision 9969) @@ -134,7 +134,7 @@ function PreparePostProcess(&$params) { - $flags = Array('js_escape', 'equals_to', 'result_to_var', 'pass_params', 'html_escape', 'strip_nl'); + $flags = Array('js_escape', 'equals_to', 'result_to_var', 'pass_params', 'html_escape', 'strip_nl', 'trim'); $flag_values = Array(); foreach ($flags as $flag_name) { @@ -161,7 +161,9 @@ // 1 - strip \r,\n; 2 - strip tabs too $ret = preg_replace($flag_values['strip_nl'] == 2 ? "/[\r\n\t]/" : "/[\r\n]/", '', $ret); } - + if ($flag_values['trim']) { + $ret = trim($ret); + } // TODO: in new parser implement this parameter in compiled code (by Alex) if ($flag_values['equals_to'] !== false) { $equals_to = explode('|', $flag_values['equals_to']);