Skip empty placeholder cells in SVG rendering

Wide characters (emoji, CJK) in pyte are followed by empty placeholder
cells. Skipping these fixes Rich's SVG character positioning.
This commit is contained in:
GitHub Copilot
2026-01-24 16:46:54 +00:00
parent 8285e9f910
commit 032d46b2a9
+4
View File
@@ -589,6 +589,10 @@ class LocalServer:
for char in row_data:
char_data = char["data"]
# Skip empty placeholder cells (after wide characters)
if not char_data:
continue
# Build Rich style from pyte character attributes
# Convert pyte color names to Rich-compatible format
style_kwargs = {}