trim spaces at the start too
This commit is contained in:
parent
467eed75d1
commit
9a1e8dc4b1
@ -43,6 +43,7 @@ class Blocks extends SimpleExtension {
|
|||||||
foreach($lines as $line) {
|
foreach($lines as $line) {
|
||||||
if(strpos($line, ":")) {
|
if(strpos($line, ":")) {
|
||||||
$parts = explode(":", $line, 2);
|
$parts = explode(":", $line, 2);
|
||||||
|
$parts[0] = trim($parts[0]);
|
||||||
$parts[1] = trim($parts[1]);
|
$parts[1] = trim($parts[1]);
|
||||||
if($parts[0] == "Title") {
|
if($parts[0] == "Title") {
|
||||||
$title = $parts[1];
|
$title = $parts[1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user