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

Error exporting to SVG - <path> is missing an SPACE #5503

Closed
Igcorreia opened this issue Jan 23, 2019 · 2 comments
Closed

Error exporting to SVG - <path> is missing an SPACE #5503

Igcorreia opened this issue Jan 23, 2019 · 2 comments

Comments

@Igcorreia
Copy link

Igcorreia commented Jan 23, 2019

Hi, when exporting to SVG we detected an error on the PATH element.

image

So we dig into the code and we found this:

<g transform="matrix(-1 0 0 -1 79.5 -15.5)" id="2_1_0"  >
<path d="M 29.5 0 A 29.5 29.5 0 0 1 -29.5 0"style="stroke: rgb(243,242,242); stroke-width: 1; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(243,242,242); fill-rule: nonzero; opacity: 1;"   />
</g>

Please noticed that the d= property is connected to the style= property, it is just missing an space.

So to fix we added the space in this line:

'"', 'COMMON_PARTS', ' />\n'

changed from:
'"', 'COMMON_PARTS', ' />\n'

to:
'" ', 'COMMON_PARTS', ' />\n'

noticed the SPACE after the first ".

Result after:

image

@asturur
Copy link
Member

asturur commented Feb 10, 2019

hey thanks for spotting this.
Could you please open a PR to fix it?

@asturur
Copy link
Member

asturur commented Mar 9, 2019

closed with #5544

@asturur asturur closed this as completed Mar 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants