From cdadfd3162cde7f05d4ff3823cb421be50d1eac5 Mon Sep 17 00:00:00 2001 From: nadrad Date: Tue, 30 Aug 2022 20:30:35 +0200 Subject: [PATCH] fixed the bug from the previous commit --- h-m-m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/h-m-m b/h-m-m index 3081a76..5454b7a 100755 --- a/h-m-m +++ b/h-m-m @@ -242,7 +242,9 @@ function decode_tree($lines, $root_id, $start_id){ $lines[$lid] ); - if (($lines[$lid][0]=='*' || $lines[$lid][0]=='-')&& $lines[$lid][1]==' ') + $start = mb_substr($lines[$lid],0,2); + + if ($start==='* ' || $start==='- ') $lines[$lid][0]=' '; if (trim($lines[$lid])!='')