From 5f81675c8bd0b85d8414934ea365e94217a89eda Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 25 Jun 2014 13:59:45 +0000 Subject: [PATCH] markdown : remove the left spaces in the beginning of lines as it is not necessary. Not use ltrim to conserve the indent in the codes git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1484 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- markdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown.php b/markdown.php index ca7766a..3b25bb4 100644 --- a/markdown.php +++ b/markdown.php @@ -329,7 +329,7 @@ class markdown } $this->debugMKD ("$lineTxt"); - $res .= "$lineTxt\n"; + $res .= substr ($lineTxt, end ($indentStack))."\n"; } $this->debugMKD ("DEB1 : End of loop");