Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14701681
D14141.id34172.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
889 B
Referenced Files
None
Subscribers
None
D14141.id34172.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D14141: Fix an issue with PhutilConsoleTable alignment
Attached
Detach File
Event Timeline
Log In to Comment