From afe66030f9c396d65180b7d2bf0b48070b370940 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Fri, 11 Sep 2015 14:03:21 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D1=81=D0=BC=D0=B5=D1=82=D0=B8?= =?UTF-8?q?=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=BF=D0=BE=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5?= =?UTF-8?q?=D1=82=D0=BA=D0=B5=20-=20=D0=B4=D0=BB=D0=B8=D0=BD=D0=BD=D0=BE?= =?UTF-8?q?=D0=B5=20=D1=82=D0=B8=D1=80=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ground/classes/Markdown.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ground/classes/Markdown.php b/ground/classes/Markdown.php index c3d3eca..8e02d84 100644 --- a/ground/classes/Markdown.php +++ b/ground/classes/Markdown.php @@ -94,7 +94,7 @@ class Markdown $string = preg_replace($pr, $rep, $string); // \n & \r - $string = str_replace(array("\n","\r",' -- '), array(' ', ' ',' – '), $string); + $string = str_replace(array("\n","\r",' -- '), array(' ', ' ',' – '), $string); // multi-space $pr = '(\s{2,})'; @@ -106,7 +106,7 @@ class Markdown $rep = '$1'; $string = preg_replace($pr, $rep, $string); - return $string; + return trim($string); } }