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

please trim the surrounding spaces around svg text #2

Open
xiechao06 opened this issue Feb 7, 2019 · 2 comments
Open

please trim the surrounding spaces around svg text #2

xiechao06 opened this issue Feb 7, 2019 · 2 comments

Comments

@xiechao06
Copy link

svg(`
	<rect></rect>
`)

will only return a text element (due to the surround spaces) which is undesirable. please trim the surround spaces

@TehShrike
Copy link
Member

@xiechao06 can you create a jsfiddle or codepen demonstrating the issue? You can import https://bundle.run/svg to get at the library code.

@xiechao06
Copy link
Author

xiechao06 commented Feb 8, 2019

https://codesandbox.io/s/99n2kk2yo. I've also made a pull request

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 a pull request may close this issue.

2 participants