Skip to content

Commit

Permalink
fix unsupported array with curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
selfthinker committed Jan 21, 2024
1 parent 35d9cf7 commit b84fb74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion renderer.php
Expand Up @@ -146,7 +146,7 @@ function _highlight($type, $text, $language=null, $filename=null) {
$this->doc .= '</a></dt>'.DOKU_LF.'<dd>';
}

if ($text{0} == "\n") {
if ($text[0] == "\n") {
$text = substr($text, 1);
}
if (substr($text, -1) == "\n") {
Expand Down

0 comments on commit b84fb74

Please sign in to comment.