From c4be903e9672f194c3ac5fdc21a8d78875d270f5 Mon Sep 17 00:00:00 2001 From: Michel Fortin Date: Sun, 2 Sep 2007 16:57:32 -0400 Subject: [PATCH] Fixed misnested code block ending tags. Code blocks were emited as
...
since 1.0.1i, where the two ending tags are in the wrong order. --- markdown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown.php b/markdown.php index 3a3efb4..f357ddc 100644 --- a/markdown.php +++ b/markdown.php @@ -1051,7 +1051,7 @@ class Markdown_Parser { # trim leading newlines and trailing newlines $codeblock = preg_replace('/\A\n+|\n+\z/', '', $codeblock); - $codeblock = "
$codeblock\n
"; + $codeblock = "
$codeblock\n
"; return "\n\n".$this->hashBlock($codeblock)."\n\n"; }