Description
Markdown tables containing emoji characters (e.g. π‘, π’, β
, β, β³) render with broken column alignment when the terminal window is not wide enough. The columns wrap incorrectly and raw ANSI escape code fragments (e.g. [38 ;2... 80;1 80;1 80ms) leak into the rendered output.
Steps to Reproduce
- Have a terminal window at a moderate width (not maximized)
- Ask Copilot CLI to produce a markdown table that includes colored emoji in cells, for example:
| Name | Status | Count |
|------|--------|-------|
| Foo | π’ open | 5β
2β |
| Bar | π‘ draft | 3β
1β³ |
- Observe the rendered table β columns are misaligned, text wraps mid-cell, and ANSI escape codes appear as raw text
Expected Behavior
The table should render with correct column alignment regardless of emoji presence. Emoji characters are typically double-width in terminals, but the markdown renderer appears to calculate them as single-width, causing columns to overflow and wrap.
Workaround
- Widening the terminal window makes the table render correctly
- Using single-width Unicode symbols (β, β, β, β) instead of emoji avoids the issue
Environment
- OS: Windows
- Terminal: Windows Terminal
- Copilot CLI version: 1.0.27
Description
Markdown tables containing emoji characters (e.g. π‘, π’, β , β, β³) render with broken column alignment when the terminal window is not wide enough. The columns wrap incorrectly and raw ANSI escape code fragments (e.g.
[38 ;2... 80;1 80;1 80ms) leak into the rendered output.Steps to Reproduce
Expected Behavior
The table should render with correct column alignment regardless of emoji presence. Emoji characters are typically double-width in terminals, but the markdown renderer appears to calculate them as single-width, causing columns to overflow and wrap.
Workaround
Environment