From 738c9132b343305c3b81ad5878159982224d3b6b Mon Sep 17 00:00:00 2001
From: Dominique Fournier
stack (too much )
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1486 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
---
markdown.php | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/markdown.php b/markdown.php
index ea9abda..8e00b9e 100644
--- a/markdown.php
+++ b/markdown.php
@@ -36,7 +36,7 @@ class markdown
// SEPARATORS : *** --- ___ * * * - - - _ _ _
// Must be placed before EMPHASIS
$search[] = "/^[*_-] ?[*_-] ?[*_-]$/Um";
- $replace[] = "
"; + $replace[] = "\n
\n
", "", $res); return $res; } @@ -187,14 +188,14 @@ class markdown if ($oldType === "code") { $this->debugMKD (""); - $res .= "\n"; + $res .= ""; array_pop ($htmlStack); array_pop ($indentStack); } else { $this->debugMKD (str_repeat (" ", end ($indentStack))."$oldType>"); - $res .= str_repeat (" ", end ($indentStack))."$oldType>\n"; + $res .= str_repeat (" ", end ($indentStack))."$oldType>"; } array_pop ($indentStack); array_pop ($htmlStack); @@ -232,7 +233,7 @@ class markdown if (end ($typeStack) !== FALSE) { // Remove last \n to put closing tag at the end of line - $res = substr ($res, 0, -1); + //$res = substr ($res, 0, -1); $oldType = array_pop ($typeStack); $this->debugMKD (str_repeat (" ", end ($indentStack))."$oldType>"); $res .= str_repeat (" ", end ($indentStack))."$oldType>";