OSDN Git Service

word-wrap command descriptions
authorscribu <mail@scribu.net>
Sat, 11 Jan 2014 07:52:44 +0000 (09:52 +0200)
committerscribu <mail@scribu.net>
Sat, 11 Jan 2014 07:52:44 +0000 (09:52 +0200)
php/commands/help.php

index 46cf470..a3f42d3 100644 (file)
@@ -47,7 +47,7 @@ class Help_Command extends WP_CLI_Command {
 
                $longdesc = $command->get_longdesc();
                if ( $longdesc ) {
-                       $out .= $longdesc . "\n";
+                       $out .= wordwrap( $longdesc, 79 ) . "\n";
                }
 
                // section headers