Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Incorrect table column width calculcations with colorized strings.#4249

Merged
danielbachhuber merged 4 commits into
wp-cli:masterwp-cli/wp-cli:masterfrom
gitlost:issue_php_cli_tools_106gitlost/wp-cli:issue_php_cli_tools_106Copy head branch name to clipboard
Jul 26, 2017
Merged

Incorrect table column width calculcations with colorized strings.#4249
danielbachhuber merged 4 commits into
wp-cli:masterwp-cli/wp-cli:masterfrom
gitlost:issue_php_cli_tools_106gitlost/wp-cli:issue_php_cli_tools_106Copy head branch name to clipboard

Conversation

@gitlost

@gitlost gitlost commented Jul 26, 2017

Copy link
Copy Markdown
Contributor

Issue wp-cli/php-cli-tools#106

This uses the pre-colorized stuff added in wp-cli/php-cli-tools#111. Adds ascii_pre_colorized arg to the various display functions in Formatter which eventually gets passed to show_table() which just calls Table::setAsciiPreColorized() with it.

So if you have an Ascii table with some pre-colorized columns you can do eg $table->display_items( $items, array( true, false, true ) ) to indicate that the padding should be adjusted for them.

@danielbachhuber danielbachhuber merged commit d51f6d3 into wp-cli:master Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.