Skip to content

fix: multi-line text works with the default anchor - #40

Merged
eigger merged 3 commits into
mainfrom
fix/text-multiline-default-anchor
Oct 3, 2026
Merged

eigger merged 3 commits into
mainfrom
fix/text-multiline-default-anchor

Conversation

@eigger

@eigger eigger commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Found while testing text wrapping in stacks: {"type":"text", "value":"a\nb"} raised anchor not supported for multiline text because the default anchor lt (and any t/b anchor) is invalid for multi-line text in Pillow, although \n is documented. For multi-line values t/b now map to the ascender/descender line (a/d). Single-line text is unchanged.

🤖 Generated with Claude Code

eigger and others added 3 commits October 3, 2026 10:09
`\n` in a text value is documented, but the default 'lt' anchor (and any t/b anchor)
raised 'anchor not supported for multiline text'. Map t/b to the ascender/descender
line for multi-line values.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ultiline and plot legends accept newlines

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@eigger
eigger merged commit e928c15 into main Oct 3, 2026
5 checks passed
@eigger
eigger deleted the fix/text-multiline-default-anchor branch October 3, 2026 01:17
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.

1 participant