[Routing] Fix dumper so it doesn't print trailing whitespace

This fixes tests from the previous commit
This commit is contained in:
Jordi Boggiano 2011-06-29 03:04:42 +02:00
parent 761724ae57
commit 6c7f484f6b

View File

@ -121,7 +121,11 @@ EOF;
foreach ($this->compileRoutes($route, $supportsRedirections, $prefix) as $line) {
foreach (explode("\n", $line) as $l) {
$code[] = $indent.$l;
if ($l) {
$code[] = $indent.$l;
} else {
$code[] = $l;
}
}
}