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:
@@ -589,6 +589,10 @@ class LocalServer:
|
|||||||
for char in row_data:
|
for char in row_data:
|
||||||
char_data = char["data"]
|
char_data = char["data"]
|
||||||
|
|
||||||
|
# Skip empty placeholder cells (after wide characters)
|
||||||
|
if not char_data:
|
||||||
|
continue
|
||||||
|
|
||||||
# Build Rich style from pyte character attributes
|
# Build Rich style from pyte character attributes
|
||||||
# Convert pyte color names to Rich-compatible format
|
# Convert pyte color names to Rich-compatible format
|
||||||
style_kwargs = {}
|
style_kwargs = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user