Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserve whitespace in svg text elements, when used in a reactor window #574

Open
wants to merge 1 commit into
base: horizon
Choose a base branch
from

Conversation

schanzer
Copy link

(addresses #573)

@schanzer schanzer requested a review from blerner January 16, 2025 16:53
@blerner
Copy link
Member

blerner commented Jan 16, 2025

This seems like the wrong fix to me, or at least, is too stringent. I suspect you want white-space: pre-wrap, since you want text to look like well-formatted text, not necessarily code. And what you likely really wanted was multiple lines of text, so you want to the white-space option that preserves linebreaks but in other respects formats text as text, hence pre-wrap.

@schanzer
Copy link
Author

schanzer commented Jan 16, 2025

I want a string to render as a TEXT node within an SVG exactly as it would render in Pyret using text. No line wrapping. (although it would be pretty cool if Pyret supported line wrapping someday!)

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.

2 participants