From cdf92282542a111f8034fed30647990b6a8d546f Mon Sep 17 00:00:00 2001 From: pkuwwt Date: Sat, 18 Mar 2023 22:11:33 +0800 Subject: [PATCH] Update renderer.php {0} => [0] --- renderer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/renderer.php b/renderer.php index 698b87f..5cf6caa 100644 --- a/renderer.php +++ b/renderer.php @@ -477,7 +477,7 @@ function _highlight($type, $text, $language = null, $filename = null, $options = $this->doc .= ''.DOKU_LF.'
'; } - if($text{0} == "\n") { + if($text[0] == "\n") { $text = substr($text, 1); } if(substr($text, -1) == "\n") {