mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-29 10:12:41 +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);
|
$description = phutil_console_wrap($message->getDescription(), 4);
|
||||||
|
|
||||||
$text[] = phutil_console_format(
|
$text[] = phutil_console_format(
|
||||||
" **<bg:{$color}> %s </bg>** (%s) __%s__\n".
|
" **<bg:{$color}> %s </bg>** (%s) __%s__\n%s\n",
|
||||||
" %s\n",
|
|
||||||
$severity,
|
$severity,
|
||||||
$code,
|
$code,
|
||||||
$name,
|
$name,
|
||||||
|
|
|
@ -624,7 +624,7 @@ EOTEXT
|
||||||
"\n\n".
|
"\n\n".
|
||||||
"Modified 'svn:externals' files:".
|
"Modified 'svn:externals' files:".
|
||||||
"\n\n".
|
"\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?";
|
$prompt = "Generate a diff (with just local changes) anyway?";
|
||||||
if (!phutil_console_confirm($prompt)) {
|
if (!phutil_console_confirm($prompt)) {
|
||||||
throw new ArcanistUserAbortException();
|
throw new ArcanistUserAbortException();
|
||||||
|
|
Loading…
Reference in a new issue