cvs: phpweb /include shared-manual.inc
| From: | Hannes Magnusson | Date: | Thu, 11 Jan 2007 18:22:46 +0000 |
| Subject: | cvs: phpweb /include shared-manual.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-33786@lists.php.net to get a copy of this message | ||
bjori Thu Jan 11 18:22:46 2007 UTC
Modified files:
/phpweb/include shared-manual.inc
Log:
Add :: to the "browser, wrap here please" list (fixes bug#39794)
http://cvs.php.net/viewvc.cgi/phpweb/include/shared-manual.inc?r1=1.229&r2=1.230&diff_format=u
Index: phpweb/include/shared-manual.inc
diff -u phpweb/include/shared-manual.inc:1.229 phpweb/include/shared-manual.inc:1.230
--- phpweb/include/shared-manual.inc:1.229 Wed Sep 13 20:32:40 2006
+++ phpweb/include/shared-manual.inc Thu Jan 11 18:22:45 2007
@@ -1,6 +1,6 @@
<?php // -*- C++ -*-
-// $Id: shared-manual.inc,v 1.229 2006/09/13 20:32:40 goba Exp $
+// $Id: shared-manual.inc,v 1.230 2007/01/11 18:22:45 bjori Exp $
/*
@@ -108,9 +108,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)) {
- $wrap = '<span class="w"> </span>';
- $title = str_replace(array('_', '->'), array("_$wrap",
"->$wrap"), $title);
+ if (preg_match("!^[a-zA-Z0-9_>()-:]+$!", $title)) {
+ $wrap = '<span class="w"> </span>';
+ $title = str_replace(array('_', '->', '::'),
array("_$wrap", "->$wrap", "::$wrap"), $title);
}
// Print out the TOC item using a <div>