svn: /web/php/trunk/include/ shared-manual.inc

From: Date: Fri, 03 Dec 2010 16:38:03 +0000
Subject: svn: /web/php/trunk/include/ shared-manual.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-9613@lists.php.net to get a copy of this message
salathe Fri, 03 Dec 2010 16:38:03 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=305953 Log: wrap after -&gt; in toc Changed paths: U web/php/trunk/include/shared-manual.inc Modified: web/php/trunk/include/shared-manual.inc =================================================================== --- web/php/trunk/include/shared-manual.inc 2010-12-03 16:21:46 UTC (rev 305952) +++ web/php/trunk/include/shared-manual.inc 2010-12-03 16:38:03 UTC (rev 305953) @@ -210,9 +210,9 @@ // make the TOC too wide, so enable the browser to wrap them // eg: xml_set_processing_instruction_handler // DOMElement->getElementsByTagNameNS() - if (preg_match("!^[a-zA-Z0-9_>()-:]+$!", $title)) { + if (preg_match("!^[a-zA-Z0-9_>():&;-]+$!", $title)) { $wrap = '<span class="w"> </span>'; - $title = str_replace(array('_', '->', '::'), array("_$wrap", "->$wrap", "::$wrap"), $title); + $title = str_replace(array('_', '->', '::', '-&gt;'), array("_$wrap", "->$wrap", "::$wrap", "-&gt;$wrap"), $title); } // Print out the TOC item using a <div>

« previous php.webmaster (#9613) next »