Ok I got what I needed
Find
$newTemplate .= trim($line) . "\n";
Replace with
$newTemplate .= rtrim( $line ) . "\n";
This allows the output of the template to the browser with white spaces / html syntax indentations intacted.
However, when in debug mode it could be a little annoying to have to inspect long lines of html with the white spaces / html syntax indentations intact.
so to fix this I did the following
Find in printarray( $arr, $caption )
WHILE ( list ( $key, $val ) = each ($arr) ){
Below Add
$lines = split("\n", $val );
#flatten html for debug display
$val = '';
WHILE ( list( $num, $line ) = each( $lines ) ) {
$val .= trim( $line ) . "\n";
} |