Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F6602
linewrapping.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 11:01 PM
2014-11-21 23:01:55 (UTC+0)
Size
672 B
Referenced Files
None
Subscribers
None
linewrapping.patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6142
Default Alt Text
linewrapping.patch (672 B)
Attached To
Mode
T26287: Wrap API Help output at 100 characters
Attached
Detach File
Event Timeline
Log In to Comment