com web/php: Allow line breaks at certain characters in the left-hand menu.: include/shared-manual.inc

From: Date: Tue, 17 Sep 2013 16:25:07 +0000
Subject: com web/php: Allow line breaks at certain characters in the left-hand menu.: include/shared-manual.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-22651@lists.php.net to get a copy of this message
Commit: 99b990a02f2dc1e6183892bf79b2693e87cfe57a Author: Levi Morrison <levim@php.net> Tue, 17 Sep 2013 10:25:07 -0600 Parents: 0ca5b1767c3585166af6910de3c33f6c7d9b1e82 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=99b990a02f2dc1e6183892bf79b2693e87cfe57a 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],

« previous php.webmaster (#22651) next »