Skip to content

Commit

Permalink
Update codeblock.php - #34
Browse files Browse the repository at this point in the history
  • Loading branch information
tstaerk committed Jul 29, 2023
1 parent 98be79a commit 22e249e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax/codeblock.php
Expand Up @@ -44,14 +44,14 @@ function postConnect()
function handle($match, $state, $pos, Doku_Handler $handler)
{
// $match2 = $match, but cut one blank at the beginning of every line.
$match2 = $match;
$match2 = "";
for ($i = 1; $i < strlen($match); $i++) {
if ($match[$i - 1] == "\n" && $match[$i] == " ") {;
} else $match2 .= $match[$i];
}
switch ($state) {
case DOKU_LEXER_ENTER:
return array($state, $match2);
return false;
case DOKU_LEXER_MATCHED:
return array($state, $match2);
case DOKU_LEXER_UNMATCHED:
Expand Down

0 comments on commit 22e249e

Please sign in to comment.