From 3116a1f5c315b0a9f28e59b0b7a30a93c1749a42 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Wed, 25 Jun 2014 19:19:19 +0000 Subject: [PATCH] Correct the code when it finished the file : no blank line git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1490 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- markdown.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/markdown.php b/markdown.php index 0a6ffd6..04ac218 100644 --- a/markdown.php +++ b/markdown.php @@ -350,6 +350,8 @@ class markdown $htmlStack = array_reverse ($htmlStack); foreach ($htmlStack as $type) { + if ($type === "code") + $res = substr ($res, 0, -1); $this->debugMKD ("FIN"); $res .= "\n"; }