Косметические правки по разметке - длинное тире

This commit is contained in:
Krivchikov Dmitry 2015-09-11 14:03:21 +03:00
parent d1e6b21af5
commit afe66030f9
1 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ class Markdown
$string = preg_replace($pr, $rep, $string); $string = preg_replace($pr, $rep, $string);
// \n & \r // \n & \r
$string = str_replace(array("\n","\r",' -- '), array(' ', ' ',' – '), $string); $string = str_replace(array("\n","\r",' -- '), array(' ', ' ',' '), $string);
// multi-space // multi-space
$pr = '(\s{2,})'; $pr = '(\s{2,})';
@ -106,7 +106,7 @@ class Markdown
$rep = '<a href="$0" title="$0" target="_blank">$1</a>'; $rep = '<a href="$0" title="$0" target="_blank">$1</a>';
$string = preg_replace($pr, $rep, $string); $string = preg_replace($pr, $rep, $string);
return $string; return trim($string);
} }
} }