Skip to content

Conversation

@viliakov
Copy link
Contributor

@viliakov viliakov commented Sep 4, 2025

  1. Identified the root cause: Unicode emoji variation selectors (U+FE0E and U+FE0F) were causing inconsistent width calculations across different terminals, leading to broken table formatting.
  2. Implemented the solution: Added a removeEmojiVariationSelectors() function that strips these problematic Unicode characters while preserving the emoji display.
  3. Applied the fix: Modified the table rendering logic to apply variation selector removal during data processing and width calculations.
  4. Fixed the failing test: Updated the expected output in TestPrintTableWithEmojiVariationSelectors to match the actual (correct) table formatting after variation selector removal.

The emoji table alignment issue has been resolved, and the implementation ensures consistent behavior across different terminals

@viliakov viliakov merged commit 2e0d321 into main Sep 5, 2025
10 checks passed
@viliakov viliakov deleted the STAC-23278 branch September 5, 2025 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants