com web/php: Allow line breaks at certain characters in the left-hand menu.: include/shared-manual.inc
| From: | Levi Morrison | 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-16613@lists.php.net to get a copy of this message | ||
Commit: 0b941d17ffb0052ea005bd2dd4a91bf705321275
Author: Levi Morrison <levim@php.net> 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('-​','_​'), $methodname);
$siblings[] = array(
"title" => $methodname,
"link" => $entry[0],