You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Either a warning or documentation to such effect might be useful or an {svglite} option to have leading <text> spaces rendered (i.e. set white-space: pre; in the style attribute).
I can help do either but wanted to have this up as an issue for discussion.
The text was updated successfully, but these errors were encountered:
hrbrmstr
changed the title
substitute non-breaking space for regular space in leading spaces in <text> tags
Ensure leading spaces are rendered in <text> tags
Feb 22, 2021
I think the right course forward is to simply add white-space: pre; in the top-level style block... I was unaware of how svg handled leading spaces, but for svglite to create true R output it needs to honour leading spaces...
You are welcome to do a PR, but I can do it as well
hrbrmstr
added a commit
to hrbrmstr/svglite
that referenced
this issue
Feb 23, 2021
This:
has stretched out characters due to leading spaces that R properly calculates
textLength
for 👍🏽but SVG renders won't actually render the leading spaces unless they are told not to:
Either a warning or documentation to such effect might be useful or an {svglite} option to have leading
<text>
spaces rendered (i.e. setwhite-space: pre;
in thestyle
attribute).I can help do either but wanted to have this up as an issue for discussion.
The text was updated successfully, but these errors were encountered: