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
$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,
"\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();
$docs = 'This option is not documented.';
}
$docs = phutil_console_wrap($docs, 14);
- $optref[] = " {$docs}\n";
+ $optref[] = "{$docs}\n";
}
if ($optref) {
$optref = implode("\n", $optref);