Page MenuHomePhabricator

D14141.id34172.diff
No OneTemporary

D14141.id34172.diff

diff --git a/src/console/view/PhutilConsoleTable.php b/src/console/view/PhutilConsoleTable.php
--- a/src/console/view/PhutilConsoleTable.php
+++ b/src/console/view/PhutilConsoleTable.php
@@ -109,18 +109,16 @@
$columns = array();
foreach ($this->columns as $key => $column) {
- if (!$this->shouldAddSpacing($key, $column)) {
- $column_str = $column['title'];
- } else {
- $column_str = $this->alignString(
- $column['title'],
+ $title = tsprintf('**%s**', $column['title']);
+
+ if ($this->shouldAddSpacing($key, $column)) {
+ $title = $this->alignString(
+ $title,
$this->getWidth($key),
idx($column, 'align', self::ALIGN_LEFT));
}
- $columns[] = tsprintf(
- '**%s**',
- $column_str);
+ $columns[] = $title;
}
$output[] = $this->formatRow($columns);

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 16, 12:24 AM (17 h, 26 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6994632
Default Alt Text
D14141.id34172.diff (889 B)

Event Timeline