595 views
in Embedded Wizard Studio by
I am trying to plot an SVG image. But, SVG string is more than 2kB. String is getting broken into multiple lines and getting compilation errors. Please help me to fix this issue.

1 Answer

0 votes
by

Hello,

SVG support is not limited to 2048 characters. Also the strings are not limited. From your description I suppose you address a limitation of the Code Editor. Code lines longer than 2048 characters are automatically broken. New, unexpected Line-Feed is added then to the code. If this is the case, you can try following:

1. If the long SVG line is found in the implementation of a method, you can divide the long SVG string in multiple shorter strings and concatenate them with the + operator as shown below:

2. If you want the long SVG string to be assigned to a constantvariable, etc. member, then copy and paste the string directly in the Inspector window without using the Code Editor window as shown below:

Does it help you further?

Best regards

Paul Banach

by
Yes Paul,

This addressed my issue. Thanks for your help.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...