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

Fix removal of trailing tab / whitespace in tabular table#184

Merged
swissspidy merged 1 commit into
masterwp-cli/php-cli-tools:masterfrom
fix-tabular-trimwp-cli/php-cli-tools:fix-tabular-trimCopy head branch name to clipboard
Mar 5, 2025
Merged

Fix removal of trailing tab / whitespace in tabular table#184
swissspidy merged 1 commit into
masterwp-cli/php-cli-tools:masterfrom
fix-tabular-trimwp-cli/php-cli-tools:fix-tabular-trimCopy head branch name to clipboard

Conversation

@mrsdizzie

@mrsdizzie mrsdizzie commented Mar 5, 2025

Copy link
Copy Markdown
Member

Previously the final table output was trimmed with the intention of removing the last newline. This had an unintended side effect of removing the tab characters from empty columns in the specific case where the last row had one or more empty columns at the end of the row. This makes sure we are only removing the newline character as intended.

Add a new unit test to verify this behavior as well.

This fixes #183

Previously the final table output was trimmed with the intention of
removing the last newline. This had an unintended side effect of
removing the tab characters from empty columns in the specific case
where the last row had one or more empty columns at the end of the row.
This makes sure we are only removing the newline character as intended.

Add a new unit test to verify this behavior as well.
@mrsdizzie mrsdizzie requested a review from a team as a code owner March 5, 2025 14:32

@swissspidy swissspidy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 🚀

@swissspidy swissspidy added this to the 0.12.4 milestone Mar 5, 2025
@swissspidy swissspidy added the bug label Mar 5, 2025
@swissspidy swissspidy merged commit fbb9c6e into master Mar 5, 2025
@swissspidy swissspidy deleted the fix-tabular-trim branch March 5, 2025 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible regression in #182

2 participants

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