mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +01:00
Avoid double indenting in console wrapping
Summary: D2016 changed the behavior of `phutil_console_wrap()`. The new behavior is better so I am fixing callsites instead of the function. Test Plan: arc help help Verify that the options descriptions is not indented with 28 spaces. Reviewers: epriestley Reviewed By: epriestley CC: aran, epriestley Differential Revision: https://secure.phabricator.com/D2047
This commit is contained in:
parent
070e963d1c
commit
edb6a38389
3 changed files with 3 additions and 4 deletions
|
@ -45,8 +45,7 @@ final class ArcanistLintRenderer {
|
|||
$description = phutil_console_wrap($message->getDescription(), 4);
|
||||
|
||||
$text[] = phutil_console_format(
|
||||
" **<bg:{$color}> %s </bg>** (%s) __%s__\n".
|
||||
" %s\n",
|
||||
" **<bg:{$color}> %s </bg>** (%s) __%s__\n%s\n",
|
||||
$severity,
|
||||
$code,
|
||||
$name,
|
||||
|
|
|
@ -624,7 +624,7 @@ EOTEXT
|
|||
"\n\n".
|
||||
"Modified 'svn:externals' files:".
|
||||
"\n\n".
|
||||
' '.phutil_console_wrap(implode("\n", $warn_externals), 8));
|
||||
phutil_console_wrap(implode("\n", $warn_externals), 8));
|
||||
$prompt = "Generate a diff (with just local changes) anyway?";
|
||||
if (!phutil_console_confirm($prompt)) {
|
||||
throw new ArcanistUserAbortException();
|
||||
|
|
|
@ -138,7 +138,7 @@ EOTEXT
|
|||
$docs = 'This option is not documented.';
|
||||
}
|
||||
$docs = phutil_console_wrap($docs, 14);
|
||||
$optref[] = " {$docs}\n";
|
||||
$optref[] = "{$docs}\n";
|
||||
}
|
||||
if ($optref) {
|
||||
$optref = implode("\n", $optref);
|
||||
|
|
Loading…
Reference in a new issue