From ecf86b073ece31dca2a31d1143b76a69b6d6e5e6 Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Tue, 5 Nov 2013 10:17:19 +0200 Subject: [PATCH] error when last line consists of 1-3 spaces --- Parsedown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parsedown.php b/Parsedown.php index 6551e58..3366288 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -78,7 +78,7 @@ class Parsedown # ~ $text = preg_replace('/\n\s*\n/', "\n\n", $text); - $text = trim($text, "\n"); + $text = trim($text, "\n "); $lines = explode("\n", $text);