trim spaces at the start too

This commit is contained in:
Shish 2011-03-02 17:11:06 +00:00
parent 467eed75d1
commit 9a1e8dc4b1

View File

@ -43,6 +43,7 @@ class Blocks extends SimpleExtension {
foreach($lines as $line) {
if(strpos($line, ":")) {
$parts = explode(":", $line, 2);
$parts[0] = trim($parts[0]);
$parts[1] = trim($parts[1]);
if($parts[0] == "Title") {
$title = $parts[1];