Page MenuHomePhabricator

linewrapping.patch

Authored By
bzimport
Nov 21 2014, 11:01 PM
Size
672 B
Referenced Files
None
Subscribers
None

linewrapping.patch

Index: ApiBase.php
===================================================================
--- ApiBase.php (revision 72239)
+++ ApiBase.php (working copy)
@@ -333,7 +333,15 @@
$choices[] = $t;
}
}
- $desc .= $paramPrefix . $nothingPrompt . $prompt . implode( ', ', $choices );
+ $desc .= $paramPrefix . $nothingPrompt . $prompt;
+ if ( count( $choices ) > 10 ) {
+ $desc .= "\n";
+ foreach( $choices as $choice ) {
+ $desc .= sprintf( " %-18s %s\n", "", $choice );
+ }
+ } else {
+ $desc .= implode( ', ', $choices );
+ }
} else {
switch ( $type ) {
case 'namespace':

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6142
Default Alt Text
linewrapping.patch (672 B)

Event Timeline