1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

error when last line consists of 1-3 spaces

This commit is contained in:
Emanuil Rusev 2013-11-05 10:17:19 +02:00
parent b12973415f
commit ecf86b073e

View File

@ -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);