Revert r106870: doesn't seem like it would format things consistently as expected.
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 20 Dec 2011 22:05:40 +0000 (22:05 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 20 Dec 2011 22:05:40 +0000 (22:05 +0000)
includes/api/ApiBase.php

index 920f114..efbf1c0 100644 (file)
@@ -280,11 +280,11 @@ abstract class ApiBase extends ContextSource {
                                                $msg .= "  $v\n";
                                        } else {
                                                if ( is_array( $v ) ) {
-                                                       $msgExample = implode( "\n", array_map( array( $this, 'indentExampleText' ), $v ) );
+                                                       $msg .= implode( "\n", array_map( array( $this, 'indentExampleText' ), $v ) );
                                                } else {
-                                                       $msgExample = "  $v";
+                                                       $msg .= "  $v";
                                                }
-                                               $msg .= wordwrap( $msgExample, 100, "\n" ) . "\n    $k";
+                                               $msg .= "\n    $k";
                                        }
                                }
                        }