Commit:    0b941d17ffb0052ea005bd2dd4a91bf705321275
Author:    Levi Morrison <[email protected]>         Tue, 17 Sep 2013 10:25:07 -0600
Parents:   63884991ef4a54ccd499f3983426eee75134ed38
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=0b941d17ffb0052ea005bd2dd4a91bf705321275

Log:
Allow line breaks at certain characters in the left-hand menu.

Changed paths:
  M  include/shared-manual.inc


Diff:
diff --git a/include/shared-manual.inc b/include/shared-manual.inc
index 34428dc..b8632b9 100644
--- a/include/shared-manual.inc
+++ b/include/shared-manual.inc
@@ -579,6 +579,8 @@ function manual_setup_beta($setup) {
         if(strpos($entry[1], '::') !== false && strpos($entry[1], ' ') === 
false) {
             list($classname, $methodname) = explode('::', $entry[1]);
         }
+        //add zero-width spaces to allow line-breaks at various characters
+        $methodname = str_replace(array('-','_'), 
array('-&#8203;','_&#8203;'), $methodname);
         $siblings[] = array(
             "title" => $methodname,
             "link"  => $entry[0],


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to