PluginOutput: preserve character after comma

refs #11728
This commit is contained in:
Alexander A. Klimov 2016-05-19 11:37:12 +02:00
parent 695d2fdaf6
commit c94228308a
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
// Help browsers to break words in plugin output
$output = trim($output);
// Add space after comma where missing
$output = preg_replace('/,[^\s]/', ', ', $output);
$output = preg_replace('/,(?=[^\s])/', ', ', $output);
// Add zero width space after ')', ']', ':', '.', '_' and '-' if not surrounded by whitespaces
$output = preg_replace('/([^\s])([\\)\\]:._-])([^\s])/', '$1$2​$3', $output);
// Add zero width space before '(' and '[' if not surrounded by whitespaces