remove goto to provide support for PHP 5.2

This commit is contained in:
Emanuil Rusev 2013-11-18 21:42:00 +02:00
parent 67b51794d8
commit 96bf75bd91
1 changed files with 3 additions and 14 deletions

View File

@ -238,20 +238,11 @@ class Parsedown
break; break;
} }
# ~
if ($line[0] >= 'a' and $line[0] !== '~' or $line[0] >= 'A' and $line[0] <= 'Z')
{
goto paragraph;
}
# ~
$deindented_line = $line;
# #
# indentation sensitive types # indentation sensitive types
$deindented_line = $line;
switch ($line[0]) switch ($line[0])
{ {
case ' ': case ' ':
@ -500,9 +491,7 @@ class Parsedown
continue; continue;
} }
# ~ # paragraph
paragraph:
if ($element['type'] === 'p') if ($element['type'] === 'p')
{ {