While looking at bug 26990 on TW api, it was noticed with a load of NS's they don...
authorSam Reed <reedy@users.mediawiki.org>
Fri, 20 May 2011 17:38:05 +0000 (17:38 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 20 May 2011 17:38:05 +0000 (17:38 +0000)
So make them wordwrap like the rest of the text

includes/api/ApiBase.php

index 961d401..a2c8769 100644 (file)
@@ -347,7 +347,9 @@ abstract class ApiBase {
                                                switch ( $type ) {
                                                        case 'namespace':
                                                                // Special handling because namespaces are type-limited, yet they are not given
-                                                               $desc .= $paramPrefix . $prompt . implode( ', ', MWNamespace::getValidNamespaces() );
+                                                               $desc .= $paramPrefix . $prompt;
+                                                               $desc .= wordwrap( implode( ', ', MWNamespace::getValidNamespaces() ),
+                                                                       100, $descWordwrap );
                                                                break;
                                                        case 'limit':
                                                                $desc .= $paramPrefix . "No more than {$paramSettings[self :: PARAM_MAX]}";