Disable zero width spaces for the moment

refs #12774
This commit is contained in:
Eric Lippmann 2016-10-11 15:20:20 +02:00
parent 8bc7d47a62
commit 4b0e90cf23
1 changed files with 2 additions and 0 deletions

View File

@ -221,6 +221,8 @@ class Zend_View_Helper_PluginOutput extends Zend_View_Helper_Abstract
*/
protected function fixWrapping($output, $zeroWidthSpace)
{
// TODO(el): Disabled until we find a bulletproof implementation
return $output;
// Add zero width space after ')', ']', ':', '.', '_' and '-' if not surrounded by whitespaces
$output = preg_replace('/([^\s])([\\)\\]:._-])([^\s])/', '$1$2' . $zeroWidthSpace . '$3', $output);
// Add zero width space before '(' and '[' if not surrounded by whitespaces